Skip to content

Instantly share code, notes, and snippets.

@onefoursix
Created June 11, 2020 06:06
Show Gist options
  • Save onefoursix/7416e4ba6b823b83b909f2ef75930ffa to your computer and use it in GitHub Desktop.
Save onefoursix/7416e4ba6b823b83b909f2ef75930ffa to your computer and use it in GitHub Desktop.
hostPath Volume Mount for SDC deployment with HTTPS
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: onefoursix/sdc:latest
ports:
- containerPort: 18630
env:
- name: SDC_CONF_SDC_BASE_HTTP_URL
value: https://portland.onefoursix.com
- name: SDC_CONF_HTTP_ENABLE_FORWARDED_REQUESTS
value: "true"
volumeMounts:
- mountPath: /etc/sdc
name: sdc-conf
nodeSelector:
auth.sdc: "true"
volumes:
- name: sdc-conf
hostPath:
path: /home/mark/sdc-conf
type: Directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment