44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: apolo-web
|
|
namespace: apolo
|
|
labels:
|
|
app.kubernetes.io/name: apolo-web
|
|
app.kubernetes.io/part-of: apolo
|
|
app.kubernetes.io/component: web
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: apolo-web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: apolo-web
|
|
app.kubernetes.io/part-of: apolo
|
|
app.kubernetes.io/component: web
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: harbor-cred-apolo
|
|
containers:
|
|
- name: nginx
|
|
image: harbor.c2et.net/apolo/xrf-web:6.0
|
|
imagePullPolicy: IfNotPresent
|
|
envFrom:
|
|
- configMapRef:
|
|
name: apolo-web-config
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: 80
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: 80
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 20
|