-
-
Save cicorias/71d95b8816e8ddd26e83c8b9184cdc2f 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