Use default tenant network on infra components
[ta/caas-registry.git] / ansible / roles / registry / templates / main / docker-registry.yml
index e81d44e..d140676 100644 (file)
@@ -25,16 +25,10 @@ spec:
       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
@@ -50,7 +44,13 @@ spec:
               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
@@ -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-registry/