networkslice: Added free5gc helm charts.
[icn.git] / demo / networkslice / free5gc / helm / f5gc-webui / templates / deployment.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4   name: f5gc-webui
5   labels:
6     app: f5gc-webui
7 spec:
8   replicas: 1
9   selector:
10     matchLabels:
11       app: f5gc-webui
12   strategy:
13     type: RollingUpdate
14   template:
15     metadata:
16       labels:
17         app: f5gc-webui
18         #annotations:
19         #k8s.v1.cni.cncf.io/networks: '[{
20         #    "name": "backbone",
21         #    "namespace": "default",
22         #    "interface": "netb",
23         #    "ip": "1.1.1.150"
24         #  }]'
25     spec:
26       securityContext:
27         runAsUser: 0
28         runAsGroup: 0
29       nodeSelector:
30 {{ .Values.nodeSelector | toYaml | indent 8 }}
31       containers:
32         - name: free5g-304-webui 
33           image: free5gc-webui:3.0.5
34           imagePullPolicy: IfNotPresent
35           # imagePullPolicy: Always
36           command: ["./webui"]
37           securityContext:
38             privileged: false
39           volumeMounts:
40             - name: f5gc-webui-config
41               mountPath: /free5gc/config
42           ports:
43             - containerPort: 5000
44               name: f5gc-webui
45               protocol: TCP
46         - name: tcpdump
47           image: corfr/tcpdump
48           imagePullPolicy: IfNotPresent
49           command:
50             - /bin/sleep
51             - infinity
52       dnsPolicy: ClusterFirst
53       restartPolicy: Always
54       schedulerName: default-scheduler
55       serviceAccountName: f5gc-webui-sa
56       terminationGracePeriodSeconds: 30
57       volumes:
58         - name: f5gc-webui-config
59           configMap:
60             name: f5gc-webui-config