Last active
February 1, 2022 18:05
-
-
Save erikaulin/d4de231655a1a5011dae5ecc39a49956 to your computer and use it in GitHub Desktop.
Kubernetes kuard deployment
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/v1beta1 | |
kind: Deployment | |
metadata: | |
name: kuard-deployment | |
labels: | |
app: kuard | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: kuard | |
template: | |
metadata: | |
labels: | |
app: kuard | |
spec: | |
containers: | |
- image: gcr.io/kuar-demo/kuard-amd64:1 | |
name: kuard | |
ports: | |
- containerPort: 8080 | |
name: http | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: kuard-service | |
spec: | |
selector: | |
app: kuard | |
ports: | |
- port: 80 | |
targetPort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment