Created
May 13, 2020 23:57
-
-
Save bharatmicrosystems/5141dd2ef20265dd6b769b986e9b9736 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
$ kubectl apply -f - <<EOF | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-v1 | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: nginx | |
version: v1 | |
template: | |
metadata: | |
labels: | |
app: nginx | |
version: v1 | |
spec: | |
containers: | |
- image: docker.io/bharamicrosystems/nginx:v1 | |
imagePullPolicy: IfNotPresent | |
name: nginx | |
ports: | |
- containerPort: 80 | |
EOF | |
deployment.apps/nginx-v1 created |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment