-
-
Save eddwinpaz/3aa1b82e83749b7771316a97c31faa2a to your computer and use it in GitHub Desktop.
Answer to StackOverflow 52200448
This file contains 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
run: hello-world | |
name: hello-world | |
namespace: default | |
spec: | |
selector: | |
matchLabels: | |
run: hello-world | |
template: | |
metadata: | |
labels: | |
run: hello-world | |
spec: | |
containers: | |
- image: karthequian/helloworld:latest | |
name: hello-world | |
ports: | |
- containerPort: 80 | |
protocol: TCP | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
run: hello-world | |
name: hello-world | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 80 | |
selector: | |
run: hello-world | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: minikube-local-ingress | |
annotations: | |
ingress.kubernetes.io/rewrite-target: / | |
spec: | |
rules: | |
- host: | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: hello-world | |
servicePort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment