|
@ -1,4 +1,4 @@ |
|
|
kind: Deployment |
|
|
kind: DaemonSet |
|
|
apiVersion: apps/v1 |
|
|
apiVersion: apps/v1 |
|
|
metadata: |
|
|
metadata: |
|
|
name: syncimages |
|
|
name: syncimages |
|
@ -7,7 +7,6 @@ metadata: |
|
|
app: tool |
|
|
app: tool |
|
|
component: syncimages |
|
|
component: syncimages |
|
|
spec: |
|
|
spec: |
|
|
replicas: 1 |
|
|
|
|
|
selector: |
|
|
selector: |
|
|
matchLabels: |
|
|
matchLabels: |
|
|
app: tool |
|
|
app: tool |
|
@ -20,10 +19,39 @@ spec: |
|
|
spec: |
|
|
spec: |
|
|
containers: |
|
|
containers: |
|
|
- name: syncimages |
|
|
- name: syncimages |
|
|
image: 'repository.anxinyun.cn/devops/syncimages:0.13' |
|
|
image: 'repository.anxinyun.cn/devops/syncimages:0.23' |
|
|
command: |
|
|
|
|
|
- ./run.sh |
|
|
|
|
|
imagePullPolicy: IfNotPresent |
|
|
imagePullPolicy: IfNotPresent |
|
|
securityContext: |
|
|
securityContext: |
|
|
privileged: true |
|
|
privileged: true |
|
|
|
|
|
volumeMounts: |
|
|
|
|
|
- name: docker-sock |
|
|
|
|
|
mountPath: /var/run/docker.sock |
|
|
|
|
|
affinity: |
|
|
|
|
|
nodeAffinity: |
|
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution: |
|
|
|
|
|
nodeSelectorTerms: |
|
|
|
|
|
- matchExpressions: |
|
|
|
|
|
- key: node-role.kubernetes.io/worker |
|
|
|
|
|
operator: In |
|
|
|
|
|
values: |
|
|
|
|
|
- '' |
|
|
|
|
|
- worker |
|
|
|
|
|
podAntiAffinity: |
|
|
|
|
|
requiredDuringSchedulingIgnoredDuringExecution: |
|
|
|
|
|
- labelSelector: |
|
|
|
|
|
matchExpressions: |
|
|
|
|
|
- key: app |
|
|
|
|
|
operator: In |
|
|
|
|
|
values: |
|
|
|
|
|
- tool |
|
|
|
|
|
- key: component |
|
|
|
|
|
operator: In |
|
|
|
|
|
values: |
|
|
|
|
|
- syncimages |
|
|
|
|
|
namespaces: |
|
|
|
|
|
- ops |
|
|
|
|
|
topologyKey: kubernetes.io/hostname |
|
|
|
|
|
volumes: |
|
|
|
|
|
- name: docker-sock |
|
|
|
|
|
hostPath: |
|
|
|
|
|
path: /var/run/docker.sock |
|
|