limitations under the License.
#}
---
-apiVersion: apps/v1beta2
+apiVersion: apps/v1
kind: DaemonSet
metadata:
name: registry
name: registry
template:
metadata:
- annotations:
- danm.k8s.io/interfaces: |
- [
- {
- "network":"flannel"
- }
- ]
labels:
name: registry
spec:
+ priorityClassName: "system-cluster-critical"
dnsPolicy: ClusterFirst
nodeSelector:
nodetype: caas_master
+ tolerations:
+ - key: "node-maintenancemode"
+ value: "enabled"
+ operator: "Equal"
+ effect: "NoExecute"
securityContext:
runAsUser: {{ caas.uid.dockerreg }}
containers:
value: "{{ caas.registry_port }}"
- name: REGISTRY_CONFIG
value: /etc/docker-registry/docker-registry-main-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-registry/