120 lines
3.0 KiB
JSON
120 lines
3.0 KiB
JSON
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"labels": {
|
|
"app": "erik-web"
|
|
},
|
|
"name": "erik-web",
|
|
"namespace": "fc-tenant-erik"
|
|
},
|
|
"spec": {
|
|
"progressDeadlineSeconds": 600,
|
|
"replicas": 1,
|
|
"revisionHistoryLimit": 10,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"app": "erik-web"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"rollingUpdate": {
|
|
"maxSurge": "25%",
|
|
"maxUnavailable": "25%"
|
|
},
|
|
"type": "RollingUpdate"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"labels": {
|
|
"app": "erik-web"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"image": "nginx:alpine",
|
|
"imagePullPolicy": "IfNotPresent",
|
|
"livenessProbe": {
|
|
"failureThreshold": 3,
|
|
"httpGet": {
|
|
"path": "/healthz",
|
|
"port": 80,
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 5,
|
|
"periodSeconds": 10,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 1
|
|
},
|
|
"name": "nginx",
|
|
"ports": [
|
|
{
|
|
"containerPort": 80,
|
|
"name": "http",
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"readinessProbe": {
|
|
"failureThreshold": 3,
|
|
"httpGet": {
|
|
"path": "/healthz",
|
|
"port": 80,
|
|
"scheme": "HTTP"
|
|
},
|
|
"initialDelaySeconds": 3,
|
|
"periodSeconds": 5,
|
|
"successThreshold": 1,
|
|
"timeoutSeconds": 1
|
|
},
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "50m",
|
|
"memory": "64Mi"
|
|
},
|
|
"requests": {
|
|
"cpu": "10m",
|
|
"memory": "32Mi"
|
|
}
|
|
},
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File",
|
|
"volumeMounts": [
|
|
{
|
|
"mountPath": "/etc/nginx/conf.d/default.conf",
|
|
"name": "nginx-conf",
|
|
"subPath": "default.conf"
|
|
},
|
|
{
|
|
"mountPath": "/usr/share/nginx/html",
|
|
"name": "html"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"dnsPolicy": "ClusterFirst",
|
|
"restartPolicy": "Always",
|
|
"schedulerName": "default-scheduler",
|
|
"securityContext": {},
|
|
"terminationGracePeriodSeconds": 30,
|
|
"volumes": [
|
|
{
|
|
"configMap": {
|
|
"defaultMode": 420,
|
|
"name": "erik-web-nginx-conf"
|
|
},
|
|
"name": "nginx-conf"
|
|
},
|
|
{
|
|
"configMap": {
|
|
"defaultMode": 420,
|
|
"name": "erik-web-html"
|
|
},
|
|
"name": "html"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|