X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=ansible%2Froles%2Fswift%2Ftemplates%2Fupdate%2Fswift_update.yml;h=15336251eca8b4d2a64459f9e29657e56682f937;hb=refs%2Fchanges%2F49%2F1749%2F3;hp=38435aad2117541f08c055bf9c5e4084de0e2f10;hpb=c6a8376d066ec907dbd9cb7aa65b54219f137c9c;p=ta%2Fcaas-registry.git diff --git a/ansible/roles/swift/templates/update/swift_update.yml b/ansible/roles/swift/templates/update/swift_update.yml index 38435aa..1533625 100644 --- a/ansible/roles/swift/templates/update/swift_update.yml +++ b/ansible/roles/swift/templates/update/swift_update.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-update @@ -28,10 +28,11 @@ spec: labels: name: swift-update spec: + priorityClassName: "system-cluster-critical" hostNetwork: true dnsPolicy: ClusterFirstWithHostNet nodeSelector: - nodename: caas_master1 + nodetype: caas_master securityContext: runAsUser: {{ caas.uid.swift }} containers: @@ -39,13 +40,14 @@ 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: memory: "4Gi" requests: + cpu: "200m" memory: "1Gi" env: - name: "SWIFT_PART_POWER"