Skip to content

Instantly share code, notes, and snippets.

@onefoursix
Last active June 10, 2020 06:44
Show Gist options
  • Save onefoursix/7ee65326013e3d3a8fce26b208f92f46 to your computer and use it in GitHub Desktop.
Save onefoursix/7ee65326013e3d3a8fce26b208f92f46 to your computer and use it in GitHub Desktop.
SDC Deployment ,Service and Ingress using NGINX
apiVersion: 1
kind: List
items:
- 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://portland.onefoursix.com
- name: SDC_CONF_HTTP_ENABLE_FORWARDED_REQUESTS
value: true
- apiVersion: v1
kind: Service
metadata:
name: auth-sdc
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
annotations:
kubernetes.io/ingress.class: nginx
spec:
tls:
- hosts:
- portland.onefoursix.com
secretName: default-server-secret
rules:
- host: portland.onefoursix.com
http:
paths:
- path: /
backend:
serviceName: auth-sdc
servicePort: 18635
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment