| giolekva | a2cf492 | 2021-12-03 13:18:49 +0400 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service | ||||
| 3 | metadata: | ||||
| 4 | name: nebula-web | ||||
| 5 | namespace: {{ .Release.Namespace }} | ||||
| 6 | spec: | ||||
| 7 | type: LoadBalancer | ||||
| 8 | selector: | ||||
| 9 | app: nebula-web | ||||
| 10 | ports: | ||||
| 11 | - name: http | ||||
| 12 | port: 80 | ||||
| 13 | targetPort: http | ||||
| 14 | protocol: TCP | ||||
| 15 | --- | ||||
| 16 | apiVersion: apps/v1 | ||||
| 17 | kind: Deployment | ||||
| 18 | metadata: | ||||
| 19 | name: nebula-web | ||||
| 20 | namespace: {{ .Release.Namespace }} | ||||
| 21 | spec: | ||||
| 22 | selector: | ||||
| 23 | matchLabels: | ||||
| 24 | app: nebula-web | ||||
| 25 | replicas: 1 | ||||
| 26 | template: | ||||
| 27 | metadata: | ||||
| 28 | labels: | ||||
| 29 | app: nebula-web | ||||
| 30 | spec: | ||||
| 31 | containers: | ||||
| 32 | - name: web | ||||
| 33 | image: {{ .Values.manage.image.repository }}:{{ .Values.manage.image.tag }} | ||||
| 34 | imagePullPolicy: {{ .Values.manage.image.pullPolicy }} | ||||
| 35 | ports: | ||||
| 36 | - name: http | ||||
| 37 | containerPort: 8080 | ||||
| 38 | protocol: TCP | ||||
| 39 | command: | ||||
| 40 | - nebula-web | ||||
| 41 | - --port=8080 | ||||
| 42 | resources: | ||||
| 43 | requests: | ||||
| 44 | memory: "10Mi" | ||||
| 45 | cpu: "10m" | ||||
| 46 | limits: | ||||
| 47 | memory: "20Mi" | ||||
| 48 | cpu: "100m" | ||||
| 49 | tolerations: | ||||
| 50 | - key: "pcloud" | ||||
| 51 | operator: "Equal" | ||||
| 52 | value: "role" | ||||
| 53 | effect: "NoSchedule" | ||||