Skip to content

Instantly share code, notes, and snippets.

@onefoursix
Last active April 17, 2020 01:16
Show Gist options
  • Save onefoursix/5c0c6252ffdc8ad5e0ba4516191e835e to your computer and use it in GitHub Desktop.
Save onefoursix/5c0c6252ffdc8ad5e0ba4516191e835e to your computer and use it in GitHub Desktop.
Authoring SDC Deployment YAML with NFS-based stage-libs and resources, Service and Ingress
apiVersion: 1
kind: List
items:
- apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-sdc
namespace: ns1
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:3.14.0
ports:
- containerPort: 18630
env:
- name: SDC_CONF_SDC_BASE_HTTP_URL
value: https://austin.onefoursix.com
- name: SDC_CONF_HTTP_ENABLE_FORWARDED_REQUESTS
value: true
volumeMounts:
- name: streamsets-libs
mountPath: /opt/streamsets-datacollector-3.14.0/streamsets-libs
- name: sdc-extras
mountPath: /opt/streamsets-datacollector-3.14.0/streamsets-libs-extras
volumes:
- name: streamsets-libs
nfs:
server: 10.0.0.4
path: /share/streamsets-libs
readOnly: true
- name: sdc-extras
nfs:
server: 10.0.0.4
path: /share/sdc-extras
readOnly: true
- apiVersion: v1
kind: Service
metadata:
name: authoring
namespace: ns1
labels:
app: auth-sdc
spec:
type: NodePort
ports:
- name: http
port: 18635
targetPort: 18630
protocol: TCP
selector:
app: auth-sdc
- apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: auth-sdc
namespace: ns1
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host:
http:
paths:
- path: /
backend:
serviceName: authoring
servicePort: 18635
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment