Created
January 23, 2020 08:54
-
-
Save tapih/c7659187002d17870a172772f99bd8e9 to your computer and use it in GitHub Desktop.
K8s deployments for debug
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: nginx-deployment | |
labels: | |
app: nginx | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: nginx | |
template: | |
metadata: | |
labels: | |
app: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:1.7.9 | |
ports: | |
- containerPort: 80 | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ubuntu-deployment | |
labels: | |
app: ubuntu | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: ubuntu | |
template: | |
metadata: | |
labels: | |
app: ubuntu | |
spec: | |
containers: | |
- name: ubuntu | |
image: quay.io/cybozu/ubuntu:18.04 | |
command: ["/usr/local/bin/pause"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment