apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hello-deploy
spec:
replicas: 10
minReadySeconds: 10
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
template:
metadata:
labels:
app: hello-world
spec:
containers:
- name: hello-pod
image: nigelpoulton/pluralsight-docker-ci:latest
ports:
- containerPort: 8080
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hello-deploy
spec:
replicas: 4
minReadySeconds: 10
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
template:
metadata:
labels:
app: hello-world
spec:
containers:
- name: hello-pod
image: nginx
ports:
- containerPort: 80
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: helloworld-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: k8s-demo
image: wardviaene/k8s-demo
ports:
- name: nodejs-port
containerPort: 3000
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: helloworld-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: k8s-demo
image: wardviaene/k8s-demo
ports:
- name: nodejs-port
containerPort: 3000
livenessProbe:
httpGet:
path: /
port: nodejs-port
initialDelaySeconds: 15
timeoutSeconds: 30
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: helloworld-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: k8s-demo
image: wardviaene/k8s-demo
ports:
- name: nodejs-port
containerPort: 3000
nodeSelector:
hardware: high-spec
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: helloworld-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: k8s-demo
image: wardviaene/k8s-demo
ports:
- name: nodejs-port
containerPort: 3000
volumeMounts:
- name: cred-volume
mountPath: /etc/creds
readOnly: true
volumes:
- name: cred-volume
secret:
secretName: db-secrets
Deployment v1 apps
--------------------------
apiVersion: apps/v1beta1
kind: Deployment
metadata:
# Unique key of the Deployment instance
name: deployment-example
spec:
# 3 Pods should exist at all times.
replicas: 3
template:
metadata:
labels:
# Apply this label to pods and default
# the Deployment label selector to this value
app: nginx
spec:
containers:
- name: nginx
# Run this image
image: nginx:1.10
Kubernetes – CKA Certification Overview – By DevOpsSchool.com
Session 1 – Kubernetes – CKA Certification – Introduction – Part 1 Out of 13
Session 2 – Kubernetes – CKA Certification – Introduction – Part 2 Out of 13
Session 3 – Kubernetes – CKA Certification – Introduction – Part 3 Out of 13
Session 4 – Kubernetes – CKA Certification – Introduction – Part 4 Out of 13
Session 5 – Kubernetes – CKA Fundamental Certification for Beginners with Demo – Part 5 Out of 13
Session 6 – Kubernetes – CKA Fundamental to Essential Certification – Introduction Part 6 Out of 13
Session 7 – Kubernetes – CKA Fundamental Certification – Introduction – Part 7 Out of 13
Session 8 – Kubernetes – CKA Certification – Introduction – Part 8 Out of 13
Session 9 – Kubernetes – CKA Certification – Introduction – Part 9 Out of 13
Session 10 – Kubernetes – CKA Certification – Introduction – Part 10 Out of 13
Session 11 – Kubernetes – CKA Certification – Introduction – Part 11 Out of 13
Session 12 – Kubernetes – CKA Certification – Introduction – Part 12 Out of 13
Session 13 – Kubernetes – CKA Certification – Introduction – Part 13 Out of 13
Latest posts by Rajesh Kumar (see all)
- Gradle versions, their supported Java versions, and unsupported Java versions - December 23, 2024
- An Introduction of GitLab Duo - December 22, 2024
- Best Hospitals for affordable surgery for medical tourism - December 20, 2024