X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ansible%2Froles%2Fswift%2Ftemplates%2Fupdate%2Fswift_update.yml;h=15336251eca8b4d2a64459f9e29657e56682f937;hb=86890efc056b21bdd1034aa24edf310da7d462f9;hp=cffc531abfe53c9a2f85382aa0132893f1ceab0e;hpb=d6ef29f2f481cd60b7c4f4a7c015a60c3348b43e;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 cffc531..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 @@ -32,7 +32,7 @@ spec: hostNetwork: true dnsPolicy: ClusterFirstWithHostNet nodeSelector: - nodename: caas_master1 + nodetype: caas_master securityContext: runAsUser: {{ caas.uid.swift }} containers: @@ -40,7 +40,7 @@ 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: