blob: 2272321a180d505b9a45a86e63d4fb65289c9ace [file] [log] [blame]
giolekvaa2cf4922021-12-03 13:18:49 +04001apiVersion: v1
2kind: Service
3metadata:
4 name: nebula-web
5 namespace: {{ .Release.Namespace }}
6spec:
7 type: LoadBalancer
8 selector:
9 app: nebula-web
10 ports:
11 - name: http
12 port: 80
13 targetPort: http
14 protocol: TCP
15---
16apiVersion: apps/v1
17kind: Deployment
18metadata:
19 name: nebula-web
20 namespace: {{ .Release.Namespace }}
21spec:
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"