Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions k8s/api-deployment-blue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
spec:
containers:
- name: api
image: harbor.dataknife.net/library/high-command-api:v0.11
image: harbor.dataknife.net/library/high-command-api:v0.17
imagePullPolicy: Always
env:
- name: MODE
Expand Down Expand Up @@ -56,27 +56,27 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
path: /api/health
path: /api/livez
port: http
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
timeoutSeconds: 10
failureThreshold: 3
readinessProbe:
httpGet:
path: /api/health
port: http
initialDelaySeconds: 10
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 2
timeoutSeconds: 10
failureThreshold: 3
resources:
requests:
cpu: "200m"
memory: "256Mi"
limits:
cpu: "1000m"
memory: "1Gi"
memory: "2Gi"
securityContext:
runAsNonRoot: true
runAsUser: 1000
Expand Down
14 changes: 7 additions & 7 deletions k8s/api-deployment-green.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
spec:
containers:
- name: api
image: harbor.dataknife.net/library/high-command-api:v0.11
image: harbor.dataknife.net/library/high-command-api:v0.17
imagePullPolicy: Always
env:
- name: MODE
Expand Down Expand Up @@ -56,27 +56,27 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
path: /api/health
path: /api/livez
port: http
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
timeoutSeconds: 10
failureThreshold: 3
readinessProbe:
httpGet:
path: /api/health
port: http
initialDelaySeconds: 10
initialDelaySeconds: 15
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 2
timeoutSeconds: 10
failureThreshold: 3
resources:
requests:
cpu: "200m"
memory: "256Mi"
limits:
cpu: "1000m"
memory: "1Gi"
memory: "2Gi"
securityContext:
runAsNonRoot: true
runAsUser: 1000
Expand Down
Loading