Skip to content

Commit be53fb9

Browse files
authored
release(aisix-cp): 0.2.0 (#302)
1 parent 0581107 commit be53fb9

4 files changed

Lines changed: 39 additions & 3 deletions

File tree

charts/aisix-cp/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: aisix-cp
33
description: Helm chart for AISIX control plane (cp-api, dp-manager, dashboard)
44
type: application
5-
version: 0.1.0
6-
appVersion: "0.1.0"
5+
version: 0.2.0
6+
appVersion: "0.2.0"
77

88
maintainers:
99
- name: API7

charts/aisix-cp/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# aisix-cp
22

3-
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
3+
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.0](https://img.shields.io/badge/AppVersion-0.2.0-informational?style=flat-square)
44

55
Helm chart for AISIX control plane (cp-api, dp-manager, dashboard)
66

@@ -65,6 +65,7 @@ Helm chart for AISIX control plane (cp-api, dp-manager, dashboard)
6565
| dpm.securityContext.allowPrivilegeEscalation | bool | `false` | |
6666
| dpm.securityContext.capabilities.drop[0] | string | `"ALL"` | |
6767
| dpm.securityContext.readOnlyRootFilesystem | bool | `true` | |
68+
| dpm.service.healthListen | string | `":7946"` | |
6869
| dpm.service.nodePort | string | `""` | |
6970
| dpm.service.port | int | `7944` | |
7071
| dpm.service.type | string | `"ClusterIP"` | |

charts/aisix-cp/templates/dpm-deployment.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ spec:
3636
- name: tls
3737
containerPort: 7944
3838
protocol: TCP
39+
{{- if .Values.dpm.service.healthListen }}
40+
- name: health
41+
containerPort: {{ trimPrefix ":" .Values.dpm.service.healthListen | int }}
42+
protocol: TCP
43+
{{- end }}
3944
env:
4045
- name: PGPASSWORD
4146
valueFrom:
@@ -44,6 +49,8 @@ spec:
4449
key: {{ include "aisix-cp.pgPasswordSecretKey" . }}
4550
- name: AISIX_DPMGR_LISTEN
4651
value: ":7944"
52+
- name: AISIX_DPMGR_HEALTH_LISTEN
53+
value: {{ .Values.dpm.service.healthListen | quote }}
4754
- name: AISIX_DPMGR_DATABASE_URL
4855
value: {{ include "aisix-cp.databaseURL" . }}
4956
- name: AISIX_DPMGR_MASTER_KEY
@@ -56,6 +63,28 @@ spec:
5663
{{- with .Values.dpm.extraEnvVars }}
5764
{{- toYaml . | nindent 12 }}
5865
{{- end }}
66+
# Probe the plain-HTTP /healthz (poller liveness), not the
67+
# mTLS port: a kubelet cannot present a client cert, and a
68+
# TCP check on 7944 stays green even if the outbox poller is
69+
# dead/wedged. A stale poller fails readiness (removed from the
70+
# Service) and liveness (pod restarted). When the health
71+
# listener is disabled (healthListen=""), the dp-manager serves
72+
# no /healthz, so fall back to a TCP check on the mTLS port.
73+
{{- if .Values.dpm.service.healthListen }}
74+
readinessProbe:
75+
httpGet:
76+
path: /healthz
77+
port: health
78+
initialDelaySeconds: 5
79+
periodSeconds: 5
80+
livenessProbe:
81+
httpGet:
82+
path: /healthz
83+
port: health
84+
initialDelaySeconds: 10
85+
periodSeconds: 10
86+
failureThreshold: 3
87+
{{- else }}
5988
readinessProbe:
6089
tcpSocket:
6190
port: tls
@@ -66,6 +95,7 @@ spec:
6695
port: tls
6796
initialDelaySeconds: 10
6897
periodSeconds: 10
98+
{{- end }}
6999
{{- with .Values.dpm.resources }}
70100
resources:
71101
{{- toYaml . | nindent 12 }}

charts/aisix-cp/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ dpm:
5252
service:
5353
type: ClusterIP
5454
port: 7944
55+
# Plain-HTTP listen address for /healthz (outbox-poller liveness),
56+
# probed by the kubelet (the mTLS port 7944 cannot be probed). Set to
57+
# "" to disable the health server + httpGet probes (the probes then
58+
# fall back to a TCP check on the mTLS port).
59+
healthListen: ":7946"
5560
nodePort: ""
5661
resources:
5762
requests:

0 commit comments

Comments
 (0)