68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: pcm-participant-kubernetes-deployment
|
|
namespace: jcce-system
|
|
labels:
|
|
k8s-app: pcm-participant-kubernetes
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: pcm-participant-kubernetes
|
|
template:
|
|
metadata:
|
|
name: pcm-participant-kubernetes
|
|
labels:
|
|
k8s-app: pcm-participant-kubernetes
|
|
spec:
|
|
hostAliases:
|
|
- hostnames:
|
|
- nacos.jcce.dev
|
|
ip: nacos_host
|
|
imagePullSecrets:
|
|
- name: secret_name
|
|
containers:
|
|
- name: pcm-participant-kubernetes
|
|
image: image_name
|
|
resources: {}
|
|
imagePullPolicy: Always
|
|
securityContext:
|
|
privileged: false
|
|
procMount: Default
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts: []
|
|
volumes: []
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 30
|
|
dnsPolicy: ClusterFirst
|
|
securityContext: {}
|
|
schedulerName: default-scheduler
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxUnavailable: 25%
|
|
maxSurge: 25%
|
|
revisionHistoryLimit: 10
|
|
progressDeadlineSeconds: 600
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
namespace: jcce-system
|
|
name: pcm-participant-kubernetes-service
|
|
labels:
|
|
k8s-service: pcm-participant-kubernetes
|
|
spec:
|
|
selector:
|
|
k8s-app: pcm-participant-kubernetes
|
|
ports:
|
|
- name: web
|
|
protocol: TCP
|
|
port: 2003
|
|
targetPort: 2003
|
|
type: ClusterIP
|