Skip to content

Commit

Permalink
adjust helm
Browse files Browse the repository at this point in the history
  • Loading branch information
alin999 committed Jul 4, 2019
1 parent a6d844d commit 61f3515
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions deploy/platformmonitoringapi/templates/platformmonitoring.gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: platformmonitoringapi
spec:
replicas: {{ printf "%s" (pluck .Values.global.env .Values.NP_MONITORING_REPLICAS | first | default .Values.NP_MONITORING_REPLICAS._default) }}
replicas: {{ .Values.NP_MONITORING_REPLICAS }}
selector:
matchLabels:
service: platformmonitoringapi
Expand All @@ -19,15 +19,15 @@ spec:
spec:
containers:
- name: platformmonitoringapi
image: {{ printf "%s" (pluck .Values.global.env .Values.IMAGE | first | default .Values.IMAGE._default) }}
image: {{ .Values.IMAGE }}
imagePullPolicy: Always
resources:
requests:
cpu: {{ printf "%s" (pluck .Values.global.env .Values.NP_MONITORING_REQUESTS_CPU | first | default .Values.NP_MONITORING_REQUESTS_CPU._default) }}
memory: {{ printf "%s" (pluck .Values.global.env .Values.NP_MONITORING_REQUESTS_MEMORY | first | default .Values.NP_MONITORING_REQUESTS_MEMORY._default) }}
cpu: {{ .Values.NP_MONITORING_REQUESTS_CPU }}
memory: {{ .Values.NP_MONITORING_REQUESTS_MEMORY }}
limits:
cpu: {{ printf "%s" (pluck .Values.global.env .Values.NP_MONITORING_LIMITS_CPU | first | default .Values.NP_MONITORING_LIMITS_CPU._default) }}
memory: {{ printf "%s" (pluck .Values.global.env .Values.NP_MONITORING_LIMITS_MEMORY | first | default .Values.NP_MONITORING_LIMITS_MEMORY._default) }}
cpu: {{ .Values.NP_MONITORING_LIMITS_CPU }}
memory: {{ .Values.NP_MONITORING_LIMITS_MEMORY }}
env:
- name: NP_MONITORING_PLATFORM_API_TOKEN
valueFrom:
Expand All @@ -48,13 +48,17 @@ spec:
- name: NP_MONITORING_K8S_TOKEN_PATH
value: /var/run/secrets/kubernetes.io/serviceaccount/token
- name: NP_MONITORING_PLATFORM_API_URL
value: {{ printf "%s" (pluck .Values.global.env .Values.NP_MONITORING_PLATFORM_API_URL | first | default .Values.NP_MONITORING_PLATFORM_API_URL._default) }}
value: {{ .Values.NP_MONITORING_PLATFORM_API_URL }}
- name: NP_MONITORING_PLATFORM_AUTH_URL
value: {{ printf "%s" (pluck .Values.global.env .Values.NP_MONITORING_PLATFORM_AUTH_URL | first | default .Values.NP_MONITORING_PLATFORM_AUTH_URL._default) }}
value: {{ .Values.NP_MONITORING_PLATFORM_AUTH_URL }}
- name: NP_MONITORING_ES_HOSTS
value: {{ printf "%s" (pluck .Values.global.env .Values.NP_MONITORING_ES_HOSTS | first | default .Values.NP_MONITORING_ES_HOSTS._default) }}
value: {{ .Values.NP_MONITORING_ES_HOSTS }}
- name: NP_MONITORING_K8S_NS
value: {{ printf "%s" (pluck .Values.global.env .Values.NP_MONITORING_K8S_NS | first | default .Values.NP_MONITORING_K8S_NS._default) }}
value: {{ .Values.NP_MONITORING_K8S_NS }}
{{- if .Values.DOCKER_LOGIN_ARTIFACTORY_SECRET_NAME }}
imagePullSecrets:
- name: {{ .Values.DOCKER_LOGIN_ARTIFACTORY_SECRET_NAME }}
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 61f3515

Please sign in to comment.