Rsync capability issue
[ta/caas-registry.git] / ansible / roles / swift / templates / main / swift_main.yml
index 1b752df..a5560f4 100644 (file)
@@ -28,6 +28,7 @@ spec:
       labels:
         name: swift
     spec:
+      priorityClassName: "system-cluster-critical"
       hostNetwork: true
       dnsPolicy: ClusterFirstWithHostNet
       nodeSelector:
@@ -39,21 +40,23 @@ spec:
           image: {{ container_image_names | select('search', '/swift') | list | last }}
           securityContext:
             capabilities:
-              add: ["NET_BIND_SERVICE"]
+              add: ["NET_BIND_SERVICE", "SETGID", "SETUID"]
           args:
             - BACKEND
           resources:
             limits:
+              cpu: "1"
               memory: "4Gi"
             requests:
+              cpu: "200m"
               memory: "1Gi"
           env:
             - name: "SWIFT_USER"
-              value: "{{ swift_user_for_template.stdout }}"
+              value: "{{ caas.swift_credential.user }}"
             - name: "SWIFT_TENANT"
-              value: "{{ swift_tenant_for_template.stdout }}"
+              value: "{{ caas.swift_credential.tenant }}"
             - name: "SWIFT_PASS"
-              value: "{{ swift_password_for_template.stdout }}"
+              value: "{{ caas.swift_credential.password }}"
             - name: "SWIFT_PART_POWER"
               value: "7"
             - name: "SWIFT_PART_HOUR"