X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ansible%2Froles%2Fswift%2Ftemplates%2Fupdate%2Fswift_update.yml;h=8910bcc2eb3d26fd3f916c842346a874b51ae058;hb=0825e1b5ce83021b3d6936ed51f7c5a6c63642ff;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..8910bcc 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,6 +28,7 @@ spec: labels: name: swift-update spec: + priorityClassName: "system-cluster-critical" hostNetwork: true dnsPolicy: ClusterFirstWithHostNet nodeSelector: @@ -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"