-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ilya Kheifets <[email protected]>
- Loading branch information
1 parent
527bd84
commit d1b687d
Showing
9 changed files
with
209 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
charts/splunk-connect-for-snmp/templates/worker/flower/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{{- if .Values.flower.enabled }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "splunk-connect-for-snmp.worker.fullname" . }}-flower | ||
labels: | ||
{{- include "splunk-connect-for-snmp.worker.flower.labels" . | nindent 4 }} | ||
|
||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
{{- include "splunk-connect-for-snmp.worker.flower.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "splunk-connect-for-snmp.worker.flower.selectorLabels" . | nindent 8 }} | ||
spec: | ||
{{- with .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
containers: | ||
- name: flower | ||
securityContext: | ||
capabilities: | ||
drop: | ||
- ALL | ||
readOnlyRootFilesystem: true | ||
runAsNonRoot: true | ||
runAsUser: 10001 | ||
runAsGroup: 10001 | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
args: | ||
[ | ||
"celery", "flower", | ||
] | ||
env: | ||
{{- include "environmental-variables" . | nindent 12 }} | ||
ports: | ||
- containerPort: 5555 | ||
|
||
volumeMounts: | ||
- name: config | ||
mountPath: "/app/config" | ||
readOnly: true | ||
- name: pysnmp-cache-volume | ||
mountPath: "/.pysnmp/" | ||
readOnly: false | ||
- name: tmp | ||
mountPath: "/tmp/" | ||
readOnly: false | ||
volumes: | ||
- name: config | ||
configMap: | ||
name: {{ include "splunk-connect-for-snmp.name" . }}-config | ||
items: | ||
- key: "config.yaml" | ||
path: "config.yaml" | ||
- name: pysnmp-cache-volume | ||
emptyDir: {} | ||
- name: tmp | ||
emptyDir: {} | ||
|
||
{{- end }} |
22 changes: 22 additions & 0 deletions
22
charts/splunk-connect-for-snmp/templates/worker/flower/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{- if .Values.flower.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "splunk-connect-for-snmp.worker.fullname" . }}-flower | ||
labels: | ||
{{- include "splunk-connect-for-snmp.worker.flower.labels" . | nindent 4 }} | ||
|
||
|
||
spec: | ||
selector: | ||
{{- include "splunk-connect-for-snmp.worker.flower.selectorLabels" . | nindent 4 }} | ||
ports: | ||
- protocol: TCP | ||
port: {{ .Values.flower.port | default 80 }} | ||
targetPort: 5555 | ||
type: LoadBalancer | ||
{{- if .Values.flower.loadBalancerIP }} | ||
externalIPs: | ||
- {{ .Values.flower.loadBalancerIP }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters