Skip to content

Instantly share code, notes, and snippets.

@PhilipSchmid
Created October 26, 2021 19:28
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 PhilipSchmid/a8d3b3ec9c01f03397352157fdef17f9 to your computer and use it in GitHub Desktop.
Save PhilipSchmid/a8d3b3ec9c01f03397352157fdef17f9 to your computer and use it in GitHub Desktop.
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