ci4sManagement-cloud/k8s/k8s-6system.yaml

37 lines
589 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: ci4s-system-deployment
namespace: ci4s-test
spec:
replicas: 1
selector:
matchLabels:
app: ci4s-system
template:
metadata:
labels:
app: ci4s-system
spec:
containers:
- name: ci4s-system
image: ci4s-system:v1.0
ports:
- containerPort: 9201
---
apiVersion: v1
kind: Service
metadata:
name: ci4s-system-service
namespace: ci4s-test
spec:
type: NodePort
ports:
- port: 9201
nodePort: 31207
protocol: TCP
selector:
app: ci4s-system