Skip to content

Instantly share code, notes, and snippets.

@onefoursix
Created July 2, 2021 06:32
Show Gist options
  • Save onefoursix/1ec71f53b4ee6a48586e7c498d1c3102 to your computer and use it in GitHub Desktop.
Save onefoursix/1ec71f53b4ee6a48586e7c498d1c3102 to your computer and use it in GitHub Desktop.
apiVersion: 1
kind: List
items:
- apiVersion: apps/v1
kind: Deployment
metadata:
name: sdc
namespace: ns1
labels:
app: sdc
spec:
replicas: 1
selector:
matchLabels:
app: sdc
template:
metadata:
labels:
app: sdc
spec:
containers:
- name: sdc
image: streamsets/datacollector:3.22.3
ports:
- containerPort: 18630
env:
- name: SDC_CONF_SDC_BASE_HTTP_URL
value: https://sdc.onefoursix.net
- name: SDC_CONF_HTTP_ENABLE_FORWARDED_REQUESTS
value: true
- apiVersion: v1
kind: Service
metadata:
name: sdc
namespace: ns1
labels:
app: sdc
spec:
type: NodePort
ports:
- name: http
port: 18630
targetPort: 18630
protocol: TCP
selector:
app: sdc
- apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: sdc
namespace: ns1
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS": 443}]'
alb.ingress.kubernetes.io/ip-address-type: ipv4
alb.ingress.kubernetes.io/target-type: instance
alb.ingress.kubernetes.io/backend-protocol: HTTP
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/security-groups: sg-xxxxxxxxxxx
alb.ingress.kubernetes.io/healthcheck-protocol: HTTP
alb.ingress.kubernetes.io/healthcheck-port: traffic-port
alb.ingress.kubernetes.io/healthcheck-path: /
alb.ingress.kubernetes.io/healthcheck-interval-seconds: '10'
alb.ingress.kubernetes.io/healthcheck-timeout-seconds: '8'
alb.ingress.kubernetes.io/success-codes: '302'
alb.ingress.kubernetes.io/healthy-threshold-count: '2'
alb.ingress.kubernetes.io/unhealthy-threshold-count: '2'
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-west-2:xxxxxxxxxxx:certificate/xxxxxxxxxxxxxx
alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-TLS-1-2-Ext-2018-06
alb.ingress.kubernetes.io/tags: abc=123
alb.ingress.kubernetes.io/group.name: sdc
spec:
rules:
- http:
paths:
- path: /*
backend:
serviceName: sdc
servicePort: 18630
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment