fix(charts): run apisix in standalone yaml mode
This commit is contained in:
parent
17186b6222
commit
45f2945dde
@ -2,5 +2,5 @@ apiVersion: v2
|
|||||||
name: k3s-platform-chart
|
name: k3s-platform-chart
|
||||||
description: Composes Flux-managed platform components for the k3s platform
|
description: Composes Flux-managed platform components for the k3s platform
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
appVersion: "1.0.0"
|
appVersion: "1.0.0"
|
||||||
|
|||||||
@ -21,6 +21,24 @@ spec:
|
|||||||
upgrade:
|
upgrade:
|
||||||
remediation:
|
remediation:
|
||||||
retries: 3
|
retries: 3
|
||||||
|
postRenderers:
|
||||||
|
- kustomize:
|
||||||
|
patches:
|
||||||
|
- target:
|
||||||
|
group: apps
|
||||||
|
version: v1
|
||||||
|
kind: Deployment
|
||||||
|
name: {{ .Values.components.apisix.releaseName }}
|
||||||
|
patch: |
|
||||||
|
- op: replace
|
||||||
|
path: /spec/template/spec/containers/0/command
|
||||||
|
value:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
export APISIX_STAND_ALONE=true
|
||||||
|
ln -sf /apisix-config/apisix.yaml /usr/local/apisix/conf/apisix.yaml
|
||||||
|
exec /docker-entrypoint.sh docker-start
|
||||||
values:
|
values:
|
||||||
{{- toYaml .Values.components.apisix.values | nindent 4 }}
|
{{- toYaml .Values.components.apisix.values | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@ -40,16 +40,40 @@ components:
|
|||||||
dashboard:
|
dashboard:
|
||||||
enabled: false
|
enabled: false
|
||||||
gateway:
|
gateway:
|
||||||
|
enabled: true
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
control:
|
||||||
|
enabled: false
|
||||||
apisix:
|
apisix:
|
||||||
deployment:
|
deployment:
|
||||||
|
mode: standalone
|
||||||
role: traditional
|
role: traditional
|
||||||
roleTraditional:
|
role_traditional:
|
||||||
configProvider: yaml
|
config_provider: yaml
|
||||||
standalone:
|
standalone:
|
||||||
enabled: true
|
config: |
|
||||||
|
routes:
|
||||||
|
- id: 1
|
||||||
|
uri: "/*"
|
||||||
|
hosts:
|
||||||
|
- api.svc.plus
|
||||||
|
name: api-gateway-prod
|
||||||
|
upstream:
|
||||||
|
type: roundrobin
|
||||||
|
nodes:
|
||||||
|
"accounts.core-prod.svc.cluster.local:80": 1
|
||||||
|
- id: 2
|
||||||
|
uri: "/*"
|
||||||
|
hosts:
|
||||||
|
- api-pre.svc.plus
|
||||||
|
name: api-gateway-pre
|
||||||
|
upstream:
|
||||||
|
type: roundrobin
|
||||||
|
nodes:
|
||||||
|
"accounts.core-pre.svc.cluster.local:80": 1
|
||||||
|
#END
|
||||||
admin:
|
admin:
|
||||||
enabled: false
|
enabled: true
|
||||||
vault:
|
vault:
|
||||||
enabled: true
|
enabled: true
|
||||||
releaseName: vault
|
releaseName: vault
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user