Add k8s integration to CAPIF
Change-Id: Icbe409be3a4c5f17ccb4b250b657cadc0fb87979
diff --git a/capif/configs/capif.yaml b/capif/configs/capif.yaml
new file mode 100644
index 0000000..b061eb0
--- /dev/null
+++ b/capif/configs/capif.yaml
@@ -0,0 +1,66 @@
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: helm-app
+ namespace: default
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: helm-app
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: cluster-admin
+subjects:
+ - kind: ServiceAccount
+ name: helm-app
+ namespace: default
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: capif-deployment
+ namespace: default
+ labels:
+ app: capif
+spec:
+ selector:
+ matchLabels:
+ app: capif
+ template:
+ metadata:
+ labels:
+ app: capif
+ version: v1
+ spec:
+ containers:
+ - name: capif
+ image: oransc.org/nonrtric/plt/capif
+ imagePullPolicy: IfNotPresent
+ ports:
+ - containerPort: 8090
+ resources:
+ limits:
+ memory: 256Mi
+ cpu: "250m"
+ requests:
+ memory: 128Mi
+ cpu: "80m"
+ serviceAccountName: helm-app
+ replicas: 1
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: capif
+ namespace: default
+spec:
+ selector:
+ app: capif
+ ports:
+ - protocol: TCP
+ port: 80
+ targetPort: 8090
+ nodePort: 31570
+ type: NodePort