Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
andregroseth committed Oct 22, 2020
2 parents 702a500 + decab01 commit 348e497
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_KEY }}
CLUSTER: ${{ matrix.cluster }}
RESOURCE: naiserator.yml
RESOURCE: naiserator_prod-sbs_prod-fss.yml
VARS: .nais/${{ matrix.cluster }}.json

deploy-prod-gcp:
Expand Down
2 changes: 0 additions & 2 deletions .nais/prod-fss.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
"namespace": "default",
"pool": "nav-prod",
"retriever_url_prod": "https://ingress-retriever.prod-gcp.nais.io/event",
"retriever_url_dev": ""

}
1 change: 0 additions & 1 deletion .nais/prod-sbs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
"namespace": "default",
"pool": "nav-prod",
"retriever_url_prod": "https://ingress-retriever.prod-gcp.nais.io/event",
"retriever_url_dev": ""
}
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def watch_nais_callback(e):
logger.info("Posting " + e['object']['metadata']['name'] + " to ingress-retriever prod")
request_put(os.environ["RETRIEVER_URL_PROD"], e)

if os.environ["RETRIEVER_URL_DEV"]:
if "RETRIEVER_URL_DEV" in os.environ:
logger.info("Posting " + e['object']['metadata']['name'] + " to ingress-retriever dev")
request_put(os.environ["RETRIEVER_URL_DEV"], e)

Expand Down
48 changes: 48 additions & 0 deletions naiserator_prod-sbs_prod-fss.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
apiVersion: "nais.io/v1alpha1"
kind: "Application"
metadata:
labels:
team: dataplattform
name: ingress-collector
namespace: dataplattform
spec:
image: {{image}}
port: 8000
prometheus:
enabled: false
path: /metrics
istio:
enabled: false
liveness:
path: /is-alive
timeout: 2
initialDelay: 2
periodSeconds: 7
failureThreshold: 3
readiness:
path: /is-ready
timeout: 2
initialDelay: 2
periodSeconds: 7
failureThreshold: 3
replicas:
min: 1
max: 1
resources:
limits:
cpu: 200m
memory: 128Mi
requests:
cpu: 100m
memory: 64Mi
env:
- name: WEB_CONCURRENCY
value: "1"
- name: ACCESS_LOG
value: ""
- name: REQUESTS_CA_BUNDLE
value: /etc/pki/tls/certs/ca-bundle.crt
- name: SSL_CERT_FILE
value: /etc/pki/tls/certs/ca-bundle.crt
- name: RETRIEVER_URL_PROD
value: {{retriever_url_prod}}

0 comments on commit 348e497

Please sign in to comment.