--- {{- if .Values.quobyte.s3.enabled }} apiVersion: apps/v1 kind: Deployment metadata: name: quobyte-s3 spec: selector: matchLabels: app: quobyte-s3 # has to match .spec.template.metadata.labels replicas: {{ .Values.quobyte.replicas }} # by default is 4 template: metadata: labels: app: quobyte-s3 # has to match .spec.selector.matchLabels annotations: timestamp: "{{ now }}" spec: terminationGracePeriodSeconds: 10 hostNetwork: true dnsPolicy: ClusterFirstWithHostNet containers: - name: quobyte-s3 image: {{ .Values.quobyte.image }} imagePullPolicy: Always env: - name: NODENAME valueFrom: fieldRef: fieldPath: metadata.name - name: MY_POD_IP valueFrom: fieldRef: fieldPath: status.podIP - name: HOST_IP valueFrom: fieldRef: fieldPath: status.podIP - name: CLOUD_INSTALL value: "1" - name: QUOBYTE_DATA_PORT value: "7863" - name: QUOBYTE_META_PORT value: "7862" - name: QUOBYTE_REG_PORT value: "7861" - name: QUOBYTE_API_PORT value: "7860" - name: QUOBYTE_S3_PORT value: "8484" - name: QUOBYTE_S3_HOSTNAME value: "{{ .Values.quobyte.s3.dnsname }}" - name: QUOBYTE_SERVICE value: "s3" - name: QUOBYTE_REGISTRY value: _quobyte._tcp.quobyte.{{ .Release.Namespace }}.svc.cluster.local - name: CLUSTER_NS value: {{ .Release.Namespace }} - name: LIMIT_OPEN_FILES value: "{{ .Values.quobyte.maxopenfiles }}" - name: LIMIT_MAX_PROCESSES value: "{{ .Values.quobyte.maxprocs }}" ports: - containerPort: 8484 name: quobyte-s3 {{- if .Values.nodepoolname }} nodeSelector: storage-node-pool: {{ .Values.nodepoolname }} {{- end }} affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: - quobyte topologyKey: "kubernetes.io/hostname" {{- end }}