3d3d508d04
hardened-containers가 apisix 3.17 라인 EOL로 3.18.0을 게이트 PASS로 새로 발행했다
(hardened-containers 커밋 3518f98: "3.17 line went EOL"). 이게 이 카탈로그의
차트 버전 갱신 트리거다 — appVersion을 3.18로 맞추려면 차트도 2.17.0(appVersion
3.18.0)으로 올려야 한다.
breaking_change_check: breaking=false. 다만 자동 diff가 못 잡는 실제 변경을
수동으로 하나 찾았다 — ingress-controller.enabled=true로 켜서 쓰는
apisix-ingress-controller 서브차트(1.2.0→1.3.0)에 새 CRD
l4routepolicies.apisix.apache.org가 추가됐다. helm_diff는 이 서브차트를 기본값
(off)으로만 렌더링해 애초에 스캔 대상에서 빠뜨린다 — CUSTOM-README.md에 수동
적용 안내를 남기고, 이 사각지대 자체를 catalog-update-pipeline SKILL.md에
기록해 다음 리뷰 때 놓치지 않게 했다.
catalog/image-map/{apisix,apisix-ingress-controller,adc}.env의 CHART_DIRS를
2.17.0으로 교체(2.16.0은 동결)하고, apply-published-tags.py로 발행된 실제 태그
(apisix 3.18.0-20260826, ingress-controller/adc는 최근 재스캔 리빌드분)를 반영했다.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
314 lines
12 KiB
YAML
314 lines
12 KiB
YAML
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
# this work for additional information regarding copyright ownership.
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
# (the "License"); you may not use this file except in compliance with
|
|
# the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
apiVersion: apps/v1
|
|
kind: {{ ternary "DaemonSet" "Deployment" .Values.useDaemonSet }}
|
|
metadata:
|
|
name: {{ include "apisix.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "apisix.labels" . | nindent 4 }}
|
|
spec:
|
|
{{- if and (not .Values.useDaemonSet) (not .Values.autoscaling.enabled) }}
|
|
replicas: {{ .Values.replicaCount }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "apisix.selectorLabels" . | nindent 6 }}
|
|
{{- if .Values.updateStrategy }}
|
|
{{- if (not .Values.useDaemonSet) }}
|
|
strategy: {{ toYaml .Values.updateStrategy | nindent 4 }}
|
|
{{- else }}
|
|
updateStrategy: {{ toYaml .Values.updateStrategy | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
|
{{- with .Values.podAnnotations }}
|
|
{{ tpl (toYaml .) $ | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "apisix.selectorLabels" . | nindent 8 }}
|
|
spec:
|
|
{{- with .Values.global.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- range $.Values.global.imagePullSecrets }}
|
|
- name: {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
serviceAccountName: {{ include "apisix.serviceAccountName" . }}
|
|
{{- with .Values.podSecurityContext }}
|
|
securityContext:
|
|
{{- . | toYaml | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.priorityClassName }}
|
|
priorityClassName: {{ . }}
|
|
{{- end }}
|
|
containers:
|
|
{{- $useTraditionalYaml := and (eq .Values.apisix.deployment.role "traditional") (eq .Values.apisix.deployment.role_traditional.config_provider "yaml") }}
|
|
- name: {{ .Chart.Name }}
|
|
{{- with .Values.securityContext }}
|
|
securityContext:
|
|
{{- . | toYaml | nindent 12 }}
|
|
{{- end }}
|
|
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
|
|
{{- if eq .Values.apisix.deployment.mode "standalone" }}
|
|
command: ["sh", "-c","ln -s /apisix-config/apisix.yaml /usr/local/apisix/conf/apisix.yaml && /docker-entrypoint.sh docker-start"]
|
|
{{- end }}
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
env:
|
|
{{- if .Values.timezone }}
|
|
- name: TZ
|
|
value: {{ .Values.timezone }}
|
|
{{- end }}
|
|
{{- if .Values.extraEnvVars }}
|
|
{{- include "apisix.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
|
|
{{- end }}
|
|
|
|
{{- if .Values.apisix.admin.credentials.secretName }}
|
|
- name: APISIX_ADMIN_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ .Values.apisix.admin.credentials.secretName }}
|
|
key: {{ include "apisix.admin.credentials.secretAdminKey" . }}
|
|
- name: APISIX_VIEWER_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ .Values.apisix.admin.credentials.secretName }}
|
|
key: {{ include "apisix.admin.credentials.secretViewerKey" . }}
|
|
{{- end }}
|
|
|
|
{{- if or (and .Values.etcd.enabled .Values.etcd.auth.rbac.create) (and (not .Values.etcd.enabled) .Values.externalEtcd.user) }}
|
|
- name: APISIX_ETCD_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ include "apisix.etcd.secretName" . }}
|
|
key: {{ include "apisix.etcd.secretPasswordKey" . }}
|
|
{{- end }}
|
|
|
|
ports:
|
|
- name: http
|
|
containerPort: {{ .Values.service.http.containerPort }}
|
|
protocol: TCP
|
|
{{- range .Values.service.http.additionalContainerPorts }}
|
|
- name: http-{{ .port | toString }}
|
|
containerPort: {{ .port }}
|
|
protocol: TCP
|
|
{{- end }}
|
|
- name: tls
|
|
containerPort: {{ .Values.apisix.ssl.containerPort }}
|
|
protocol: TCP
|
|
{{- range .Values.apisix.ssl.additionalContainerPorts }}
|
|
- name: tls-{{ .port | toString }}
|
|
containerPort: {{ .port }}
|
|
protocol: TCP
|
|
{{- end }}
|
|
{{- if .Values.apisix.admin.enabled }}
|
|
- name: admin
|
|
containerPort: {{ .Values.apisix.admin.port }}
|
|
protocol: TCP
|
|
{{- end }}
|
|
{{- if .Values.control.enabled }}
|
|
- name: control
|
|
containerPort: {{ .Values.control.service.port }}
|
|
protocol: TCP
|
|
{{- end }}
|
|
{{- if .Values.apisix.prometheus.enabled }}
|
|
- name: prometheus
|
|
containerPort: {{ .Values.apisix.prometheus.containerPort }}
|
|
protocol: TCP
|
|
{{- end }}
|
|
{{- if and .Values.service.stream.enabled (or (gt (len .Values.service.stream.tcp) 0) (gt (len .Values.service.stream.udp) 0)) }}
|
|
{{- with .Values.service.stream }}
|
|
{{- if (gt (len .tcp) 0) }}
|
|
{{- range $index, $port := .tcp }}
|
|
- name: proxy-tcp-{{ $index | toString }}
|
|
{{- if kindIs "map" $port }}
|
|
containerPort: {{ splitList ":" ($port.addr | toString) | last }}
|
|
{{- else }}
|
|
containerPort: {{ $port }}
|
|
{{- end }}
|
|
protocol: TCP
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if (gt (len .udp) 0) }}
|
|
{{- range $index, $port := .udp }}
|
|
- name: proxy-udp-{{ $index | toString }}
|
|
containerPort: {{ $port }}
|
|
protocol: UDP
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if $useTraditionalYaml }}
|
|
- name: status
|
|
containerPort: {{ default 7085 .Values.apisix.status.port }}
|
|
protocol: TCP
|
|
{{- end}}
|
|
|
|
{{- if ne .Values.apisix.deployment.role "control_plane" }}
|
|
readinessProbe:
|
|
failureThreshold: 6
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
{{- if $useTraditionalYaml }}
|
|
httpGet:
|
|
path: /status/ready
|
|
port: {{ default 7085 .Values.apisix.status.port }}
|
|
{{- else }}
|
|
tcpSocket:
|
|
port: {{ .Values.service.http.containerPort }}
|
|
{{- end}}
|
|
timeoutSeconds: 1
|
|
{{- end }}
|
|
lifecycle:
|
|
preStop:
|
|
exec:
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- "sleep 30"
|
|
volumeMounts:
|
|
{{- if eq .Values.apisix.deployment.mode "standalone" }}
|
|
- mountPath: /apisix-config
|
|
name: apisix-admin
|
|
{{- end }}
|
|
{{- if .Values.apisix.setIDFromPodUID }}
|
|
- mountPath: /usr/local/apisix/conf/apisix.uid
|
|
name: id
|
|
subPath: apisix.uid
|
|
{{- end }}
|
|
- mountPath: /usr/local/apisix/conf/config.yaml
|
|
name: apisix-config
|
|
subPath: config.yaml
|
|
{{- if and .Values.apisix.ssl.enabled .Values.apisix.ssl.existingCASecret }}
|
|
- mountPath: /usr/local/apisix/conf/ssl/{{ .Values.apisix.ssl.certCAFilename }}
|
|
name: ssl
|
|
subPath: {{ .Values.apisix.ssl.certCAFilename }}
|
|
{{- end }}
|
|
|
|
{{- if .Values.etcd.auth.tls.enabled }}
|
|
- mountPath: /etcd-ssl
|
|
name: etcd-ssl
|
|
{{- end }}
|
|
{{- if .Values.apisix.customPlugins.enabled }}
|
|
{{- range $plugin := .Values.apisix.customPlugins.plugins }}
|
|
{{- range $mount := $plugin.configMap.mounts }}
|
|
{{- if ne $plugin.configMap.name "" }}
|
|
- mountPath: {{ $mount.path }}
|
|
name: plugin-{{ $plugin.configMap.name }}
|
|
subPath: {{ $mount.key }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.apisix.luaModuleHook.enabled }}
|
|
{{- range $mount := .Values.apisix.luaModuleHook.configMapRef.mounts }}
|
|
- mountPath: {{ $mount.path }}
|
|
name: lua-module-hook
|
|
subPath: {{ $mount.key }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.extraVolumeMounts }}
|
|
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
|
|
{{- end }}
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
{{- if .Values.extraContainers }}
|
|
{{- toYaml .Values.extraContainers | nindent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.hostNetwork }}
|
|
hostNetwork: true
|
|
dnsPolicy: ClusterFirstWithHostNet
|
|
{{- end }}
|
|
hostNetwork: {{ .Values.hostNetwork }}
|
|
initContainers:
|
|
{{- if .Values.etcd.enabled }}
|
|
- name: wait-etcd
|
|
image: {{ .Values.initContainer.image }}:{{ .Values.initContainer.tag }}
|
|
{{- if .Values.etcd.fullnameOverride }}
|
|
command: ['sh', '-c', "until nc -z {{ .Values.etcd.fullnameOverride }} {{ .Values.etcd.service.port }}; do echo waiting for etcd `date`; sleep 2; done;"]
|
|
{{ else }}
|
|
command: ['sh', '-c', "until nc -z {{ .Release.Name }}-etcd.{{ .Release.Namespace }}.svc.{{ .Values.etcd.clusterDomain }} {{ .Values.etcd.service.port }}; do echo waiting for etcd `date`; sleep 2; done;"]
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.extraInitContainers }}
|
|
{{- toYaml .Values.extraInitContainers | nindent 8 }}
|
|
{{- end }}
|
|
volumes:
|
|
{{- if eq .Values.apisix.deployment.mode "standalone" }}
|
|
- configMap:
|
|
name: {{ .Values.apisix.deployment.standalone.existingConfigMap | default "apisix.yaml" }}
|
|
name: apisix-admin
|
|
{{- end }}
|
|
- configMap:
|
|
name: {{ include "apisix.fullname" . }}
|
|
name: apisix-config
|
|
{{- if and .Values.apisix.ssl.enabled .Values.apisix.ssl.existingCASecret }}
|
|
- secret:
|
|
secretName: {{ .Values.apisix.ssl.existingCASecret | quote }}
|
|
name: ssl
|
|
{{- end }}
|
|
{{- if .Values.etcd.auth.tls.enabled }}
|
|
- secret:
|
|
secretName: {{ .Values.etcd.auth.tls.existingSecret | quote }}
|
|
name: etcd-ssl
|
|
{{- end }}
|
|
|
|
{{- if .Values.apisix.setIDFromPodUID }}
|
|
- downwardAPI:
|
|
items:
|
|
- path: "apisix.uid"
|
|
fieldRef:
|
|
fieldPath: metadata.uid
|
|
name: id
|
|
{{- end }}
|
|
{{- if .Values.apisix.customPlugins.enabled }}
|
|
{{- range $plugin := .Values.apisix.customPlugins.plugins }}
|
|
{{- if ne $plugin.configMap.name "" }}
|
|
- name: plugin-{{ $plugin.configMap.name }}
|
|
configMap:
|
|
name: {{ $plugin.configMap.name }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.apisix.luaModuleHook.enabled }}
|
|
- name: lua-module-hook
|
|
configMap:
|
|
name: {{ .Values.apisix.luaModuleHook.configMapRef.name }}
|
|
{{- end }}
|
|
{{- if .Values.extraVolumes }}
|
|
{{- toYaml .Values.extraVolumes | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.topologySpreadConstraints }}
|
|
topologySpreadConstraints:
|
|
{{- tpl (. | toYaml) $ | nindent 8 }}
|
|
{{- end }}
|