| Davit Tabidze | 207ce08 | 2024-04-09 19:15:25 +0400 | [diff] [blame^] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: launcher |
| 5 | namespace: {{ .Release.Namespace }} |
| 6 | spec: |
| 7 | type: ClusterIP |
| 8 | selector: |
| 9 | app: launcher |
| 10 | ports: |
| 11 | - name: {{ .Values.portName }} |
| 12 | protocol: TCP |
| 13 | port: 80 |
| 14 | targetPort: http |
| 15 | --- |
| 16 | apiVersion: apps/v1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: launcher |
| 20 | namespace: {{ .Release.Namespace }} |
| 21 | spec: |
| 22 | replicas: 1 |
| 23 | selector: |
| 24 | matchLabels: |
| 25 | app: launcher |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: launcher |
| 30 | spec: |
| 31 | containers: |
| 32 | - name: launcher |
| 33 | image: {{ .Values.image.repository }}:{{ .Values.image.tag }} |
| 34 | ports: |
| 35 | - name: http |
| 36 | containerPort: 8080 |
| 37 | protocol: TCP |
| 38 | command: |
| 39 | - launcher |
| 40 | - --port=8080 |
| 41 | - --logoutUrl={{ .Values.logoutUrl }} |