X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ansible%2Froles%2Fregistry%2Ftemplates%2Fupdate%2Fdocker-registry-update.yml;h=36407f77fa587a23d2d109ee9a28b7c58ca56eb3;hb=2ec1b9c5bea5a7b765486c0680c4dceeaf6df0be;hp=39b0ce9800e613b9d52209f53763e97a33306048;hpb=2ed671c54dad28dd81763928b28cd17d5c76df66;p=ta%2Fcaas-registry.git diff --git a/ansible/roles/registry/templates/update/docker-registry-update.yml b/ansible/roles/registry/templates/update/docker-registry-update.yml index 39b0ce9..36407f7 100644 --- a/ansible/roles/registry/templates/update/docker-registry-update.yml +++ b/ansible/roles/registry/templates/update/docker-registry-update.yml @@ -25,16 +25,10 @@ spec: name: registry-update template: metadata: - annotations: - danm.k8s.io/interfaces: | - [ - { - "network":"flannel" - } - ] labels: name: registry-update spec: + priorityClassName: "system-cluster-critical" dnsPolicy: ClusterFirst nodeSelector: nodename: caas_master1 @@ -50,7 +44,13 @@ spec: value: "{{ caas.update_registry_port }}" - name: REGISTRY_CONFIG value: /etc/docker-registry/docker-registry-update-config.yml + resources: + requests: + cpu: "10m" volumeMounts: + - name: time-mount + mountPath: /etc/localtime + readOnly: true - name: config mountPath: /etc/docker-registry/ readOnly: true @@ -60,6 +60,9 @@ spec: mountPath: /etc/ssl/certs/ readOnly: true volumes: + - name: time-mount + hostPath: + path: /etc/localtime - name: config hostPath: path: /etc/docker-update-registry/