Commit 98bde803 authored by lover2010's avatar lover2010

123

parent e97e95d6
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: dj-app
component: dj-app
tier: backend
name: dj-app
namespace: dangjian
spec:
progressDeadlineSeconds: 600
replicas: 1
selector:
matchLabels:
app: dj-app
component: dj-app
tier: backend
template:
metadata:
labels:
app: dj-app
component: dj-app
tier: backend
annotations:
kubesphere.io/imagepullsecrets: '{"dj-app": "harbor-secret"}'
spec:
containers:
- env:
image: $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:$BRANCH_NAME$BUILD_NUMBER
readinessProbe:
exec: # 定义 ls /example 命令
command:
- ls
- /usr/share/nginx/html
imagePullPolicy: Always
name: dj-app
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
cpu: 800m
memory: 1024Mi
requests:
cpu: 300m
memory: 500Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullSecrets:
- name: harbor-secret
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment