64 lines
1.2 KiB
YAML
64 lines
1.2 KiB
YAML
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: jcc-rip-frontend
|
|
namespace: jcce-system
|
|
labels:
|
|
k8s-app: jcc-rip
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: jcc-rip
|
|
template:
|
|
metadata:
|
|
name: jcc-rip
|
|
labels:
|
|
k8s-app: jcc-rip
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: secret_name
|
|
containers:
|
|
- name: jcc-rip
|
|
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: jcc-rip-service
|
|
labels:
|
|
k8s-service: jcc-rip
|
|
spec:
|
|
selector:
|
|
k8s-app: jcc-rip
|
|
ports:
|
|
- name: web
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
type: ClusterIP
|