mirror of https://github.com/sgoudham/k8s
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
701 B
YAML
36 lines
701 B
YAML
2 years ago
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: website
|
||
|
name: website
|
||
|
namespace: website
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: website
|
||
|
strategy:
|
||
|
rollingUpdate:
|
||
|
maxSurge: 25%
|
||
|
maxUnavailable: 25%
|
||
|
type: RollingUpdate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: website
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: sgoudham/website:latest
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
name: website
|
||
|
ports:
|
||
|
- containerPort: 3000
|
||
|
protocol: TCP
|
||
|
livenessProbe:
|
||
|
httpGet:
|
||
|
path: /
|
||
|
port: 3000
|
||
|
resources: {}
|
||
|
dnsPolicy: ClusterFirst
|
||
|
restartPolicy: Always
|