-
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 c97b876
Showing
7 changed files
with
176 additions
and
2 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
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,64 @@ | ||
{{- if .Values.flower.enabled }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: flower | ||
namespace: sc4snmp | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: flower | ||
template: | ||
metadata: | ||
labels: | ||
app: flower | ||
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 }} |
20 changes: 20 additions & 0 deletions
20
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,20 @@ | ||
{{- if .Values.flower.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: flower-svc | ||
namespace: sc4snmp | ||
|
||
spec: | ||
selector: | ||
app: flower | ||
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
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