Created
June 11, 2020 06:06
-
-
Save onefoursix/7416e4ba6b823b83b909f2ef75930ffa to your computer and use it in GitHub Desktop.
hostPath Volume Mount for SDC deployment with HTTPS
This file contains hidden or 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: 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