Skip to content

Instantly share code, notes, and snippets.

@onefoursix
Last active June 14, 2020 20:38
Show Gist options
  • Save onefoursix/396021f97d4072ff0a44db9dda327c7e to your computer and use it in GitHub Desktop.
Save onefoursix/396021f97d4072ff0a44db9dda327c7e to your computer and use it in GitHub Desktop.
Deployment manifest for SDC with sdc.id, auth-token and keystore.jks mounted from secrets and dpm.properties from a configmap
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-sdc
labels:
app : auth-sdc
spec:
replicas: 1
selector:
matchLabels:
app: auth-sdc
template:
metadata:
labels:
app: auth-sdc
spec:
containers:
- name : auth-sdc
image: streamsets/datacollector:latest
ports:
- containerPort: 18630
env:
- name: SDC_CONF_SDC_BASE_HTTP_URL
value: "https://sequoia.onefoursix.com:18630"
- name: SDC_CONF_HTTP_ENABLE_FORWARDED_REQUESTS
value: "true"
- name: SDC_CONF_HTTP_PORT
value: "-1"
- name: SDC_CONF_HTTPS_PORT
value: "18630"
- name: SDC_HTTPS_KEYSTORE_PATH
value: "onefoursix.jks"
- name: SDC_JAVA_OPTS
value: "-Xmx2048m -Xms2048m"
volumeMounts:
- name: sdc-id
mountPath: /data/sdc.id
subPath: sdc.id
- name: sdc-token
mountPath: /etc/sdc/application-token.txt
subPath: application-token.txt
- name: sdc-keystore
mountPath: /etc/sdc/onefoursix.jks
subPath: onefoursix.jks
- name: sdc-keystore
mountPath: /etc/sdc/keystore-password.txt
subPath: keystore-password.txt
- name: dpm-config
mountPath: /etc/sdc/dpm.properties
subPath: dpm.properties
volumes:
- name: sdc-id
secret:
secretName: sdc-id
- name: sdc-token
secret:
secretName: sdc-token
- name: sdc-keystore
secret:
secretName: sdc-keystore
- name: dpm-config
configMap:
name: dpm-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment