Last active
December 19, 2018 10:05
-
-
Save indigo423/0d69c5829c95c9c8e386408ac08900cc to your computer and use it in GitHub Desktop.
minion-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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: minion | |
labels: | |
component: minion | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
component: minion | |
template: | |
metadata: | |
labels: | |
component: minion | |
spec: | |
securityContext: | |
sysctls: | |
- name: net.ipv4.ping_group_range | |
value: "0 429496729" | |
containers: | |
- name: minion | |
image: no42org/minion:23.0.1 | |
imagePullPolicy: Always | |
resources: | |
requests: | |
memory: "512Mi" | |
limits: | |
memory: "1024Mi" | |
args: ["-f"] | |
env: | |
- name: JAVA_MIN_MEM | |
value: 512M | |
- name: JAVA_MAX_MEM | |
value: 1024M | |
- name: MINION_ID | |
value: eu-de-hn-office-minion-01 | |
- name: MINION_LOCATION | |
value: eu-de-hn-office | |
- name: OPENNMS_HTTP_URL | |
value: http://172.24.23.100:8980/opennms | |
- name: TZ | |
value: Europe/Berlin | |
volumeMounts: | |
- name: minion-config-volume | |
mountPath: "/opt/minion-etc-overlay/" | |
- name: minion-secrets-volume | |
mountPath: "/opt/minion-secrets/" | |
readOnly: true | |
ports: | |
- containerPort: 8201 | |
protocol: TCP | |
- containerPort: 162 | |
protocol: UDP | |
- containerPort: 514 | |
protocol: UDP | |
- containerPort: 6343 | |
protocol: UDP | |
volumes: | |
- name: minion-config-volume | |
configMap: | |
name: minion-config | |
items: | |
- key: kafka.boot | |
path: featuresBoot.d/kafka.boot | |
- key: org.opennms.core.ipc.rpc.kafka.cfg | |
path: org.opennms.core.ipc.rpc.kafka.cfg | |
- key: org.opennms.core.ipc.sink.kafka.cfg | |
path: org.opennms.core.ipc.sink.kafka.cfg | |
- key: org.opennms.features.telemetry.listeners-sflow-udp-6343.cfg | |
path: org.opennms.features.telemetry.listeners-sflow-udp-6343.cfg | |
- key: org.ops4j.pax.logging.cfg | |
path: org.ops4j.pax.logging.cfg | |
- name: minion-secrets-volume | |
secret: | |
secretName: minion-auth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment