X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ansible%2Froles%2Fswift%2Ftemplates%2Fupdate%2Fswift_update.yml;h=3f243464916702f0dc7c433c1baf150c1acf00d2;hb=refs%2Fchanges%2F01%2F2201%2F2;hp=a98a5b92d54d63c3c38722184e752e6b003f20ff;hpb=3a07e29dbc786524acc028e048e4ec3c3bfa0299;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 a98a5b9..3f24346 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,12 @@ spec: hostNetwork: true dnsPolicy: ClusterFirstWithHostNet nodeSelector: - nodename: caas_master1 + nodetype: caas_master + tolerations: + - key: "node-maintenancemode" + value: "enabled" + operator: "Equal" + effect: "NoExecute" securityContext: runAsUser: {{ caas.uid.swift }} containers: