limitations under the License.
#}
---
-apiVersion: apps/v1beta2
+apiVersion: apps/v1
kind: DaemonSet
metadata:
name: registry-update
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
+ nodetype: caas_master
securityContext:
runAsUser: {{ caas.uid.dockerreg }}
containers:
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
mountPath: /etc/ssl/certs/
readOnly: true
volumes:
+ - name: time-mount
+ hostPath:
+ path: /etc/localtime
- name: config
hostPath:
path: /etc/docker-update-registry/