Last active
June 25, 2020 21:26
-
-
Save confiq/cbc9b94c54edaf9a951457113367a939 to your computer and use it in GitHub Desktop.
simple k8s service
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: | |
name: kuard | |
spec: | |
selector: | |
matchLabels: | |
app: kuard | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: kuard | |
spec: | |
containers: | |
- image: gcr.io/kuar-demo/kuard-amd64:blue | |
imagePullPolicy: Always | |
name: kuard | |
ports: | |
- containerPort: 8080 |
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: Service | |
metadata: | |
name: kuard | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
protocol: TCP | |
selector: | |
app: kuard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment