You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.8 KiB
68 lines
1.8 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: gva-server
|
|
annotations:
|
|
flipped-aurora/gin-vue-admin: backend
|
|
github: "https://github.com/flipped-aurora/gin-vue-admin.git"
|
|
app.kubernetes.io/version: 0.0.1
|
|
labels:
|
|
app: gva-server
|
|
version: gva-vue3
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: gva-server
|
|
version: gva-vue3
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: gva-server
|
|
version: gva-vue3
|
|
spec:
|
|
containers:
|
|
- name: gin-vue-admin-container
|
|
image: registry.cn-hangzhou.aliyuncs.com/gin-vue-admin/server:40fc3aa6
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8888
|
|
name: http
|
|
volumeMounts:
|
|
- mountPath: /go/src/github.com/flipped-aurora/gin-vue-admin/server/config.yaml
|
|
name: config
|
|
subPath: config.yaml
|
|
- mountPath: /etc/localtime
|
|
name: localtime
|
|
resources:
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 2000Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 200Mi
|
|
# readinessProbe:
|
|
# httpGet:
|
|
# path: /ready
|
|
# port: http
|
|
# initialDelaySeconds: 20
|
|
# periodSeconds: 10
|
|
# successThreshold: 1
|
|
# failureThreshold: 3
|
|
# livenessProbe:
|
|
# httpGet:
|
|
# path: /health
|
|
# port: http
|
|
# initialDelaySeconds: 20
|
|
# periodSeconds: 10
|
|
# successThreshold: 1
|
|
# failureThreshold: 3
|
|
#imagePullSecrets:
|
|
# - name: docker-registry
|
|
volumes:
|
|
- name: localtime
|
|
hostPath:
|
|
path: /etc/localtime
|
|
- name: config
|
|
configMap:
|
|
name: config.yaml
|