Created
February 14, 2020 07:25
-
-
Save onefoursix/9af06b8bf53f16d076fcec24ddcb9fce to your computer and use it in GitHub Desktop.
Deployment, Service and Ingress for an Authoring SDC on Minikube
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: v1 | |
kind: List | |
items: | |
- apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: auth-sdc | |
namespace: ns2 | |
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://minikube.sdc | |
- name: SDC_CONF_HTTP_ENABLE_FORWARDED_REQUESTS | |
value: "true" | |
- apiVersion: v1 | |
kind: Service | |
metadata: | |
name: auth-sdc | |
namespace: ns2 | |
labels: | |
app: auth-sdc | |
spec: | |
ports: | |
- name: http | |
port: 18630 | |
targetPort: 18630 | |
protocol: TCP | |
selector: | |
app: auth-sdc | |
- apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: auth-sdc | |
namespace: ns2 | |
spec: | |
rules: | |
- host: minikube.sdc | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: auth-sdc | |
servicePort: 18630 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment