Created
March 25, 2020 01:58
-
-
Save andersonkxiass/1e8d160d9db569c12ea66a4eed4b3adc to your computer and use it in GitHub Desktop.
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
kind: Deployment | |
apiVersion: apps/v1 | |
metadata: | |
name: whoami | |
namespace: default | |
labels: | |
app: containous | |
name: whoami | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: containous | |
task: whoami | |
template: | |
metadata: | |
labels: | |
app: containous | |
task: whoami | |
spec: | |
containers: | |
- name: containouswhoami | |
image: containous/whoami | |
ports: | |
- containerPort: 80 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: whoami | |
namespace: default | |
spec: | |
ports: | |
- name: http | |
port: 80 | |
selector: | |
app: containous | |
task: whoami |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment