Skip to content

Commit 07df4b1

Browse files
authored
feat: release Ingress Controller 2.0.0-rc5 (#891)
1 parent 7fd5bd2 commit 07df4b1

File tree

4 files changed

+26
-13
lines changed

4 files changed

+26
-13
lines changed

charts/apisix-ingress-controller/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ keywords:
2424
- nginx
2525
- crd
2626
type: application
27-
version: 1.0.5
28-
appVersion: 2.0.0-rc4
27+
version: 1.0.6
28+
appVersion: 2.0.0-rc5
2929
sources:
3030
- https://github.com/apache/apisix-helm-chart
3131

charts/apisix-ingress-controller/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ The same for container level, you need to set:
127127
| config.provider.syncPeriod | string | `"1m"` | |
128128
| config.provider.type | string | `"apisix"` | |
129129
| config.secureMetrics | bool | `false` | |
130-
| deployment.adcContainer | object | `{"config":{"logLevel":"info"},"image":{"repository":"ghcr.io/api7/adc","tag":"0.21.0"}}` | Set adc sidecar container configuration |
130+
| deployment.adcContainer | object | `{"config":{"logLevel":"info"},"image":{"repository":"ghcr.io/api7/adc","tag":"0.21.2"}}` | Set adc sidecar container configuration |
131131
| deployment.affinity | object | `{}` | |
132132
| deployment.annotations | object | `{}` | Add annotations to Apache APISIX ingress controller resource |
133133
| deployment.image.pullPolicy | string | `"IfNotPresent"` | |
134134
| deployment.image.repository | string | `"apache/apisix-ingress-controller"` | |
135-
| deployment.image.tag | string | `"2.0.0-rc4"` | |
135+
| deployment.image.tag | string | `"2.0.0-rc5"` | |
136136
| deployment.nodeSelector | object | `{}` | |
137137
| deployment.podAnnotations | object | `{}` | |
138-
| deployment.podSecurityContext | object | `{}` | |
138+
| deployment.podSecurityContext | object | `{"fsGroup":2000}` | Set security context for the pod fsGroup: 2000 ensures containers can share Unix socket files via a common group. |
139139
| deployment.replicas | int | `1` | |
140140
| deployment.resources | object | `{}` | Set pod resource requests & limits |
141141
| deployment.tolerations | list | `[]` | |

charts/apisix-ingress-controller/templates/deployment.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ spec:
5252
valueFrom:
5353
fieldRef:
5454
fieldPath: metadata.name
55+
- name: ADC_SERVER_URL
56+
value: "unix:/sockets/adc.sock"
5557
image: "{{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag }}"
5658
imagePullPolicy: {{ .Values.deployment.image.pullPolicy }}
5759
ports:
@@ -67,6 +69,8 @@ spec:
6769
- name: {{ .Release.Name }}-ingress-config
6870
mountPath: /app/conf/config.yaml
6971
subPath: config.yaml
72+
- name: socket-volume
73+
mountPath: /sockets
7074
{{- if .Values.webhook.enabled }}
7175
- name: webhook-certs
7276
mountPath: /certs
@@ -88,14 +92,14 @@ spec:
8892
resources:
8993
{{- toYaml .Values.deployment.resources | nindent 10 }}
9094
securityContext:
91-
{{- toYaml .Values.deployment.podSecurityContext | nindent 10 }}
95+
{{- toYaml .Values.deployment.securityContext | nindent 10 }}
9296
- name: adc-server
9397
image: "{{ .Values.deployment.adcContainer.image.repository }}:{{ .Values.deployment.adcContainer.image.tag }}"
9498
imagePullPolicy: {{ .Values.deployment.image.pullPolicy }}
9599
args:
96100
- "server"
97101
- "--listen"
98-
- "http://127.0.0.1:3000"
102+
- "unix:/sockets/adc.sock"
99103
- "--listen-status"
100104
- "3001"
101105
env:
@@ -122,10 +126,13 @@ spec:
122126
port: 3001
123127
initialDelaySeconds: 5
124128
periodSeconds: 5
129+
volumeMounts:
130+
- name: socket-volume
131+
mountPath: /sockets
125132
resources:
126133
{{- toYaml .Values.deployment.resources | nindent 10 }}
127134
securityContext:
128-
{{- toYaml .Values.deployment.podSecurityContext | nindent 10 }}
135+
{{- toYaml .Values.deployment.securityContext | nindent 10 }}
129136
{{- with .Values.deployment.nodeSelector }}
130137
nodeSelector:
131138
{{- toYaml . | nindent 8 }}
@@ -146,12 +153,14 @@ spec:
146153
- name: {{ .Release.Name }}-ingress-config
147154
configMap:
148155
name: {{ .Release.Name }}-ingress-config
156+
- name: socket-volume
157+
emptyDir: {}
149158
{{- if .Values.webhook.enabled }}
150159
- name: webhook-certs
151160
secret:
152161
secretName: {{ include "apisix-ingress-controller-manager.webhook.secretName" . }}
153162
{{- end }}
154163
securityContext:
155-
runAsNonRoot: false
164+
{{- toYaml .Values.deployment.podSecurityContext | nindent 8 }}
156165
serviceAccountName: {{ .Release.Name }}
157166
terminationGracePeriodSeconds: 10

charts/apisix-ingress-controller/values.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,27 @@ deployment:
5252
nodeSelector: {}
5353
tolerations: []
5454
affinity: {}
55-
podSecurityContext: {}
56-
# fsGroup: 2000
55+
56+
# -- Set security context for the pod
57+
# fsGroup: 2000 ensures containers can share Unix socket files via a common group.
58+
podSecurityContext:
59+
fsGroup: 2000
60+
5761
# -- Topology Spread Constraints for pod assignment spread across your cluster among failure-domains
5862
# ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
5963
topologySpreadConstraints: []
6064
image:
6165
repository: apache/apisix-ingress-controller
6266
pullPolicy: IfNotPresent
63-
tag: "2.0.0-rc4"
67+
tag: "2.0.0-rc5"
6468
# -- Set pod resource requests & limits
6569
resources: {}
6670

6771
# -- Set adc sidecar container configuration
6872
adcContainer:
6973
image:
7074
repository: ghcr.io/api7/adc
71-
tag: "0.21.0"
75+
tag: "0.21.2"
7276
config:
7377
logLevel: "info"
7478

0 commit comments

Comments
 (0)