X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ansible%2Froles%2Fswift%2Ftemplates%2Fmain%2Fswift_main.yml;h=40b9d8515e59782a8812ad338ef283874286d656;hb=0825e1b5ce83021b3d6936ed51f7c5a6c63642ff;hp=1b752dfd12ae058a3352e6b4b606e5dcd75b8093;hpb=c6a8376d066ec907dbd9cb7aa65b54219f137c9c;p=ta%2Fcaas-registry.git diff --git a/ansible/roles/swift/templates/main/swift_main.yml b/ansible/roles/swift/templates/main/swift_main.yml index 1b752df..40b9d85 100644 --- a/ansible/roles/swift/templates/main/swift_main.yml +++ b/ansible/roles/swift/templates/main/swift_main.yml @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. #} --- -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: DaemonSet metadata: name: swift @@ -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"