Created
February 27, 2021 15:17
-
-
Save bharatmicrosystems/3eff21967081a8bd5740559fbb27d4e2 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
cat <<EOF | kubectl apply -f - | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
spec: | |
selector: | |
matchLabels: | |
app: nginx | |
replicas: 2 | |
template: | |
metadata: | |
labels: | |
app: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:latest | |
resources: | |
requests: | |
memory: "100Mi" | |
cpu: "250m" | |
limits: | |
memory: "250Mi" | |
cpu: "500m" | |
EOF | |
deployment.apps/nginx-deployment created |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment