Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Deployment, Service and Ingress object for the HTTP testing app kuard - https://github.com/kubernetes-up-and-running/kuard
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: kuard
name: kuard
namespace: kuard
spec:
replicas: 1
selector:
matchLabels:
app: kuard
template:
metadata:
labels:
app: kuard
spec:
containers:
- image: gcr.io/kuar-demo/kuard-amd64:blue
name: kuard-amd64
---
apiVersion: v1
kind: Service
metadata:
labels:
app: kuard
name: kuard
namespace: kuard
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: kuard
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kuard
namespace: kuard
spec:
rules:
- host: kuard.<your-ip-here>.xip.puzzle.ch
http:
paths:
- backend:
service:
name: kuard
port:
number: 8080
path: /
pathType: Prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment