limitations under the License.
#}
---
-apiVersion: apps/v1beta2
+apiVersion: apps/v1
kind: DaemonSet
metadata:
name: swift
labels:
name: swift
spec:
+ priorityClassName: "system-cluster-critical"
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
nodeSelector:
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"