Loading rucio-daemons/templates/conveyor-preparer.yaml 0 → 100644 +121 −0 Original line number Diff line number Diff line {{- if gt .Values.conveyorPreparerCount 0.0 -}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ .Release.Name }}-conveyor-preparer labels: app: {{ template "rucio.name" . }} chart: {{ template "rucio.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.conveyorPreparerCount }} selector: matchLabels: app: {{ template "rucio.name" . }} release: {{ .Release.Name }} strategy: type: {{ .Values.strategy.type }} {{- if eq .Values.strategy.type "RollingUpdate" }} {{- with .Values.strategy.rollingUpdate }} rollingUpdate: {{ toYaml . | trim | indent 6 }} {{- end }} {{- end }} minReadySeconds: {{ .Values.minReadySeconds }} template: metadata: labels: app: {{ template "rucio.name" . }} release: {{ .Release.Name }} rucio-daemon: conveyor-preparer {{- with .Values.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- if or .Values.podAnnotations .Values.conveyorPreparer.podAnnotations}} annotations: {{- end }} {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.conveyorPreparer.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if .Values.serviceAccountName }} serviceAccountName: {{ .Values.serviceAccountName }} {{- end }} volumes: - name: proxy-volume secret: secretName: {{ .Release.Name }}-rucio-x509up - name: ca-volume secret: secretName: {{ .Release.Name }}-rucio-ca-bundle {{- range $key, $val := .Values.additionalSecrets }} - name: {{ $key }} secret: secretName: {{ $.Release.Name }}-{{ $val.secretName }} {{- end}} {{- range $key, $val := .Values.persistentVolumes }} - name: {{ $key }} persistentVolumeClaim: claimName: {{ $val.name }} {{- end}} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: - name: proxy-volume mountPath: /opt/proxy - name: ca-volume mountPath: /opt/certs {{- range $key, $val := .Values.additionalSecrets }} - name: {{ $key }} mountPath: {{ $val.mountPath }} subPath: {{ $val.subPath }} {{- end}} {{- range $key, $val := .Values.persistentVolumes }} - name: {{ $key }} mountPath: {{ $val.mountPath }} {{- end}} ports: - name: metrics containerPort: 8080 protocol: TCP env: {{- range $key1, $val1 := .Values.config }} {{- range $key2, $val2 := $val1}} - name: RUCIO_CFG_{{ $key1 | upper }}_{{ $key2 | upper }} valueFrom: secretKeyRef: name: {{ template "rucio.fullname" $ }}.cfg key: {{ $key1 }}_{{ $key2 }} {{- end}} {{- end}} {{- range $key1, $val1 := .Values.optional_config }} - name: {{ $key1 | upper }} value: "{{ $val1 }}" {{- end}} - name: RUCIO_DAEMON value: "conveyor-preparer" - name: RUCIO_DAEMON_ARGS value: "{{- if .Values.conveyorPreparer.threads }} --threads {{ .Values.conveyorPreparer.threads }}{{ end }} {{ if .Values.conveyorPreparer.bulk }} --bulk {{ .Values.conveyorPreparer.bulk }}{{ end }} {{- if .Values.conveyorPreparer.sleepTime }} --sleep-time {{ .Values.conveyorPreparer.sleepTime }}{{ end }}" {{- with .Values.conveyorPreparer.resources }} resources: {{ toYaml . | trim | indent 12 }} {{ end }} {{- with .Values.conveyorPreparer.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.conveyorPreparer.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.conveyorPreparer.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} {{ end }} rucio-daemons/values.yaml +12 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ conveyorFinisherCount: 0 conveyorReceiverCount: 0 conveyorStagerCount: 0 conveyorThrottlerCount: 0 conveyorPreparerCount: 0 darkReaperCount: 0 hermesCount: 0 hermes2Count: 0 Loading Loading @@ -158,6 +159,17 @@ conveyorThrottler: memory: "200Mi" cpu: "700m" conveyorPreparer: threads: 1 podAnnotations: {} resources: limits: memory: "200Mi" cpu: "700m" requests: memory: "200Mi" cpu: "700m" darkReaper: workers: 1 chunkSize: "10" Loading Loading
rucio-daemons/templates/conveyor-preparer.yaml 0 → 100644 +121 −0 Original line number Diff line number Diff line {{- if gt .Values.conveyorPreparerCount 0.0 -}} apiVersion: apps/v1 kind: Deployment metadata: name: {{ .Release.Name }}-conveyor-preparer labels: app: {{ template "rucio.name" . }} chart: {{ template "rucio.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: replicas: {{ .Values.conveyorPreparerCount }} selector: matchLabels: app: {{ template "rucio.name" . }} release: {{ .Release.Name }} strategy: type: {{ .Values.strategy.type }} {{- if eq .Values.strategy.type "RollingUpdate" }} {{- with .Values.strategy.rollingUpdate }} rollingUpdate: {{ toYaml . | trim | indent 6 }} {{- end }} {{- end }} minReadySeconds: {{ .Values.minReadySeconds }} template: metadata: labels: app: {{ template "rucio.name" . }} release: {{ .Release.Name }} rucio-daemon: conveyor-preparer {{- with .Values.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- if or .Values.podAnnotations .Values.conveyorPreparer.podAnnotations}} annotations: {{- end }} {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.conveyorPreparer.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- if .Values.serviceAccountName }} serviceAccountName: {{ .Values.serviceAccountName }} {{- end }} volumes: - name: proxy-volume secret: secretName: {{ .Release.Name }}-rucio-x509up - name: ca-volume secret: secretName: {{ .Release.Name }}-rucio-ca-bundle {{- range $key, $val := .Values.additionalSecrets }} - name: {{ $key }} secret: secretName: {{ $.Release.Name }}-{{ $val.secretName }} {{- end}} {{- range $key, $val := .Values.persistentVolumes }} - name: {{ $key }} persistentVolumeClaim: claimName: {{ $val.name }} {{- end}} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: - name: proxy-volume mountPath: /opt/proxy - name: ca-volume mountPath: /opt/certs {{- range $key, $val := .Values.additionalSecrets }} - name: {{ $key }} mountPath: {{ $val.mountPath }} subPath: {{ $val.subPath }} {{- end}} {{- range $key, $val := .Values.persistentVolumes }} - name: {{ $key }} mountPath: {{ $val.mountPath }} {{- end}} ports: - name: metrics containerPort: 8080 protocol: TCP env: {{- range $key1, $val1 := .Values.config }} {{- range $key2, $val2 := $val1}} - name: RUCIO_CFG_{{ $key1 | upper }}_{{ $key2 | upper }} valueFrom: secretKeyRef: name: {{ template "rucio.fullname" $ }}.cfg key: {{ $key1 }}_{{ $key2 }} {{- end}} {{- end}} {{- range $key1, $val1 := .Values.optional_config }} - name: {{ $key1 | upper }} value: "{{ $val1 }}" {{- end}} - name: RUCIO_DAEMON value: "conveyor-preparer" - name: RUCIO_DAEMON_ARGS value: "{{- if .Values.conveyorPreparer.threads }} --threads {{ .Values.conveyorPreparer.threads }}{{ end }} {{ if .Values.conveyorPreparer.bulk }} --bulk {{ .Values.conveyorPreparer.bulk }}{{ end }} {{- if .Values.conveyorPreparer.sleepTime }} --sleep-time {{ .Values.conveyorPreparer.sleepTime }}{{ end }}" {{- with .Values.conveyorPreparer.resources }} resources: {{ toYaml . | trim | indent 12 }} {{ end }} {{- with .Values.conveyorPreparer.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.conveyorPreparer.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} {{- with .Values.conveyorPreparer.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} {{ end }}
rucio-daemons/values.yaml +12 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ conveyorFinisherCount: 0 conveyorReceiverCount: 0 conveyorStagerCount: 0 conveyorThrottlerCount: 0 conveyorPreparerCount: 0 darkReaperCount: 0 hermesCount: 0 hermes2Count: 0 Loading Loading @@ -158,6 +159,17 @@ conveyorThrottler: memory: "200Mi" cpu: "700m" conveyorPreparer: threads: 1 podAnnotations: {} resources: limits: memory: "200Mi" cpu: "700m" requests: memory: "200Mi" cpu: "700m" darkReaper: workers: 1 chunkSize: "10" Loading