blob: b061eb0ad5f0897090ebc7f29d4f403b139fffc5 [file] [log] [blame]
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