Last active
June 10, 2020 00:30
-
-
Save onefoursix/f95228cef381d7868e067cff5c3db789 to your computer and use it in GitHub Desktop.
Authoring Data Collector YAML with Deployment, Service and Ingress
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: 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://california.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: traefik | |
spec: | |
rules: | |
- host: | |
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