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.
 
 

35 lines
758 B

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-drone
spec:
replicas: 1
selector:
matchLabels:
app: test-drone
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: test-drone
spec:
serviceAccountName: micro-account
containers:
- name: gpw
image: IMAGE_PATH:IMAGE_TAG
command: [
"test-drone",
]
volumeMounts:
- name: configfile
mountPath: /usr/local/bin/conf.yaml
subPath: test-drone.yaml
volumes:
- name: configfile
configMap:
name: config-center
items:
- key: test-drone.yaml
path: test-drone.yaml