72 lines
1.9 KiB
YAML
72 lines
1.9 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/instance: apisix
|
|
app.kubernetes.io/name: dashboard
|
|
app.kubernetes.io/version: 3.0.0
|
|
name: apisix-dashboard
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/instance: apisix
|
|
app.kubernetes.io/name: dashboard
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/instance: apisix
|
|
app.kubernetes.io/name: dashboard
|
|
spec:
|
|
containers:
|
|
- name: dashboard
|
|
image: reg.cadoles.com/proxy_cache/apache/apisix-dashboard:3.0.0-alpine
|
|
imagePullPolicy: IfNotPresent
|
|
envFrom:
|
|
- secretRef:
|
|
name: apisix-dashboard-sensitive
|
|
livenessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /ping
|
|
port: http
|
|
scheme: HTTP
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
ports:
|
|
- containerPort: 9000
|
|
name: http
|
|
protocol: TCP
|
|
readinessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /ping
|
|
port: http
|
|
scheme: HTTP
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
resources: {}
|
|
securityContext: {}
|
|
volumeMounts:
|
|
- mountPath: /usr/local/apisix-dashboard/conf/conf.yaml
|
|
name: apisix-dashboard-config
|
|
subPath: config.yaml
|
|
restartPolicy: Always
|
|
serviceAccount: apisix-dashboard
|
|
serviceAccountName: apisix-dashboard
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- configMap:
|
|
defaultMode: 420
|
|
name: apisix-dashboard
|
|
name: apisix-dashboard-config
|