|
| 1 | +apiVersion: v1 |
| 2 | +kind: Service |
| 3 | +metadata: |
| 4 | + name: {{ .Values.appName }} |
| 5 | + namespace: {{ .Values.global.namespace }} |
| 6 | + labels: |
| 7 | + app: {{ .Values.appName }} |
| 8 | +spec: |
| 9 | + type: LoadBalancer |
| 10 | + externalTrafficPolicy: Cluster |
| 11 | + ports: |
| 12 | + {{- toYaml .Values.servicePorts | nindent 2 }} |
| 13 | + selector: |
| 14 | + app: {{ .Values.appName }} |
| 15 | +--- |
| 16 | +apiVersion: apps/v1 |
| 17 | +kind: Deployment |
| 18 | +metadata: |
| 19 | + name: {{ .Values.appName }} |
| 20 | + namespace: {{ .Values.global.namespace }} |
| 21 | + labels: |
| 22 | + app: {{ .Values.appName }} |
| 23 | +spec: |
| 24 | + replicas: {{ .Values.replicas }} |
| 25 | + selector: |
| 26 | + matchLabels: |
| 27 | + app: {{ .Values.appName }} |
| 28 | + template: |
| 29 | + metadata: |
| 30 | + labels: |
| 31 | + app: {{ .Values.appName }} |
| 32 | + spec: |
| 33 | + securityContext: |
| 34 | + runAsUser: {{ .Values.global.runAsUser }} |
| 35 | + runAsGroup: {{ .Values.global.runAsGroup }} |
| 36 | + volumes: |
| 37 | + # Mount config files from secrets |
| 38 | + - name: murfey-client-config |
| 39 | + secret: |
| 40 | + secretName: {{ .Values.global.murfeyClientConfigCLEMSecretName }} |
| 41 | + items: |
| 42 | + - key: {{ .Values.global.murfeyClientConfigCLEMFileName }} |
| 43 | + path: .murfey |
| 44 | + # Mount data directories |
| 45 | + {{- toYaml .Values.extraVolumes | nindent 8 }} |
| 46 | + containers: |
| 47 | + - name: {{ .Values.appName }} |
| 48 | + image: {{ .Values.image }} |
| 49 | + imagePullPolicy: Always |
| 50 | + securityContext: |
| 51 | + privileged: false |
| 52 | + volumeMounts: |
| 53 | + # Mount Murfey client config |
| 54 | + - name: murfey-client-config |
| 55 | + mountPath: /murfey/config/.murfey |
| 56 | + subPath: .murfey |
| 57 | + readOnly: false |
| 58 | + # Mount data directories |
| 59 | + {{- toYaml .Values.extraVolumeMounts | nindent 12 }} |
| 60 | + env: |
| 61 | + - name: MURFEY_CLIENT_CONFIG_HOME |
| 62 | + value: "/tmp" |
| 63 | + ports: |
| 64 | + - containerPort: {{ .Values.containerPort }} |
| 65 | + command: |
| 66 | + {{- toYaml .Values.command | nindent 12 }} |
| 67 | + args: |
| 68 | + {{- toYaml .Values.args | nindent 12 }} |
0 commit comments