From 67e86f0aeb12418d8a5d23ede6d261d2c9c6966d Mon Sep 17 00:00:00 2001 From: zhangdongdong Date: Thu, 20 Jan 2022 12:15:56 +0800 Subject: [PATCH] Add new file --- k8s-deploy-template.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 k8s-deploy-template.yaml diff --git a/k8s-deploy-template.yaml b/k8s-deploy-template.yaml new file mode 100644 index 0000000..65634cb --- /dev/null +++ b/k8s-deploy-template.yaml @@ -0,0 +1,38 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {APP_NAME} + namespace: longjingshan-dev + labels: + app: {APP_NAME} +spec: + replicas: 1 + selector: + matchLabels: + app: {APP_NAME} + template: + metadata: + labels: + app: {APP_NAME} + annotations: + armsPilotAutoEnable: "on" + armsPilotCreateAppName: "{APP_NAME}" + spec: + containers: + - name: {APP_NAME} + image: {IMAGE} + imagePullPolicy: "Always" + ports: + - containerPort: 8080 + readinessProbe: + httpGet: + scheme: HTTP + path: /actuator/health + port: 1024 + initialDelaySeconds: 10 + periodSeconds: 5 + imagePullSecrets: + - name: kp-schbrain + + + -- GitLab