Created
October 26, 2021 19:28
-
-
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
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: 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