Last active
April 14, 2020 14:30
-
-
Save Rahulsharma0810/33c47eb60bcc75a1860b678d479480ae 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
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: nginx | |
spec: | |
replicas: 3 | |
selector: | |
app: nginx ##Must BE same to template/metadata/labels/app | |
template: | |
metadata: | |
name: nginx | |
labels: | |
app: nginx ## | |
spec: | |
containers: | |
- name: nginx | |
image: nginx | |
ports: | |
- containerPort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment