Last active
January 5, 2021 14:38
-
-
Save johananl/05cf73b6872bdb7e3393d06ed6b97dd6 to your computer and use it in GitHub Desktop.
kuard sample k8s app
This file contains 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: | |
name: kuard | |
labels: | |
app: 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: | |
- containerPort: 8080 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: kuard | |
spec: | |
selector: | |
app: kuard | |
ports: | |
- protocol: TCP | |
port: 80 | |
targetPort: 8080 | |
type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment