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
|
||||
description: Composes Flux-managed platform components for the k3s platform
|
||||
type: application
|
||||
version: 0.1.0
|
||||
version: 0.1.1
|
||||
appVersion: "1.0.0"
|
||||
|
||||
@ -21,6 +21,24 @@ spec:
|
||||
upgrade:
|
||||
remediation:
|
||||
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:
|
||||
{{- toYaml .Values.components.apisix.values | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
@ -40,16 +40,40 @@ components:
|
||||
dashboard:
|
||||
enabled: false
|
||||
gateway:
|
||||
enabled: true
|
||||
type: ClusterIP
|
||||
control:
|
||||
enabled: false
|
||||
apisix:
|
||||
deployment:
|
||||
mode: standalone
|
||||
role: traditional
|
||||
roleTraditional:
|
||||
configProvider: yaml
|
||||
standalone:
|
||||
enabled: true
|
||||
role_traditional:
|
||||
config_provider: yaml
|
||||
standalone:
|
||||
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:
|
||||
enabled: false
|
||||
enabled: true
|
||||
vault:
|
||||
enabled: true
|
||||
releaseName: vault
|
||||
|
||||
Loading…
Reference in New Issue
Block a user