blob: b061eb0ad5f0897090ebc7f29d4f403b139fffc5 [file] [log] [blame]
elinuxhenrik588bbf32022-03-04 15:42:59 +01001apiVersion: v1
2kind: ServiceAccount
3metadata:
4 name: helm-app
5 namespace: default
6---
7apiVersion: rbac.authorization.k8s.io/v1
8kind: ClusterRoleBinding
9metadata:
10 name: helm-app
11roleRef:
12 apiGroup: rbac.authorization.k8s.io
13 kind: ClusterRole
14 name: cluster-admin
15subjects:
16 - kind: ServiceAccount
17 name: helm-app
18 namespace: default
19---
20apiVersion: apps/v1
21kind: Deployment
22metadata:
23 name: capif-deployment
24 namespace: default
25 labels:
26 app: capif
27spec:
28 selector:
29 matchLabels:
30 app: capif
31 template:
32 metadata:
33 labels:
34 app: capif
35 version: v1
36 spec:
37 containers:
38 - name: capif
39 image: oransc.org/nonrtric/plt/capif
40 imagePullPolicy: IfNotPresent
41 ports:
42 - containerPort: 8090
43 resources:
44 limits:
45 memory: 256Mi
46 cpu: "250m"
47 requests:
48 memory: 128Mi
49 cpu: "80m"
50 serviceAccountName: helm-app
51 replicas: 1
52---
53apiVersion: v1
54kind: Service
55metadata:
56 name: capif
57 namespace: default
58spec:
59 selector:
60 app: capif
61 ports:
62 - protocol: TCP
63 port: 80
64 targetPort: 8090
65 nodePort: 31570
66 type: NodePort