{ "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "labels": { "app": "yealink-provision" }, "name": "yealink-provision", "namespace": "telephony" }, "spec": { "progressDeadlineSeconds": 600, "replicas": 1, "revisionHistoryLimit": 10, "selector": { "matchLabels": { "app": "yealink-provision" } }, "strategy": { "rollingUpdate": { "maxSurge": "25%", "maxUnavailable": "25%" }, "type": "RollingUpdate" }, "template": { "metadata": { "labels": { "app": "yealink-provision" } }, "spec": { "containers": [ { "image": "nginx:alpine", "imagePullPolicy": "IfNotPresent", "name": "nginx", "ports": [ { "containerPort": 80, "protocol": "TCP" } ], "resources": { "limits": { "cpu": "200m", "memory": "64Mi" }, "requests": { "cpu": "10m", "memory": "16Mi" } }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", "volumeMounts": [ { "mountPath": "/usr/share/nginx/html/provision", "name": "configs" }, { "mountPath": "/etc/nginx/conf.d/default.conf", "name": "nginx-conf", "subPath": "nginx.conf" } ] } ], "dnsPolicy": "ClusterFirst", "restartPolicy": "Always", "schedulerName": "default-scheduler", "securityContext": {}, "terminationGracePeriodSeconds": 30, "volumes": [ { "configMap": { "defaultMode": 420, "name": "yealink-provisioning" }, "name": "configs" }, { "configMap": { "defaultMode": 420, "items": [ { "key": "nginx.conf", "path": "nginx.conf" } ], "name": "yealink-provisioning" }, "name": "nginx-conf" } ] } } } }