Skip to content

Instantly share code, notes, and snippets.

@eddwinpaz
Forked from mhausenblas/hello-world-app.yaml
Created January 9, 2020 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddwinpaz/3aa1b82e83749b7771316a97c31faa2a to your computer and use it in GitHub Desktop.
Save eddwinpaz/3aa1b82e83749b7771316a97c31faa2a to your computer and use it in GitHub Desktop.
Answer to StackOverflow 52200448
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