Created
October 21, 2021 15:09
-
-
Save daveadams/b40e43089e141df879d0dbfe09509400 to your computer and use it in GitHub Desktop.
Simple kuard manifest suitable for Rancher Desktop
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: v1 | |
kind: Namespace | |
metadata: | |
name: kuard | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: kuard | |
labels: | |
app: kuard | |
namespace: kuard | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: kuard | |
template: | |
metadata: | |
labels: | |
app: kuard | |
spec: | |
containers: | |
- name: kuard | |
image: gcr.io/kuar-demo/kuard-amd64:blue | |
ports: | |
- name: http | |
containerPort: 8080 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: kuard-service | |
namespace: kuard | |
spec: | |
selector: | |
app: kuard | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
--- | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: kuard | |
namespace: kuard | |
spec: | |
rules: | |
- host: kuard.localhost | |
http: | |
paths: | |
- pathType: Prefix | |
path: "/" | |
backend: | |
service: | |
name: kuard-service | |
port: | |
number: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment