tao12345666333 commented on code in PR #366: URL: https://github.com/apache/apisix-helm-chart/pull/366#discussion_r997830908
########## docs/en/latest/FAQ.md: ########## @@ -34,6 +37,263 @@ helm install apisix apisix/apisix \ --set etcd.host={http://etcd_node_1:2379\,http://etcd_node_2:2379} ``` +### How to install Apache APISIX running in standalone mode? + +Helm chart does not provide a direct way to deploy Apache APISIX running in standalone mode. You can install it in the following manner. + +Create a `deploy.yaml` with the following content. + +<Tabs + groupId="version" + defaultValue="3.0.0-beta" + values={[ + {label: '3.0.0-beta', value: '3.0.0-beta'}, + {label: '2.15', value: '2.15'}, + ]}> + +<TabItem value="3.0.0-beta"> + +```yaml +# deploy.yaml +kind: ConfigMap +apiVersion: v1 +metadata: + name: apisix-gw-config.yaml +data: + config.yaml: | + deployment: + role: data_plane + role_data_plane: + config_provider: yaml +--- +kind: ConfigMap +apiVersion: v1 +metadata: + name: apisix.yaml +data: + apisix.yaml: | + routes: + - + uri: /hi + upstream: + nodes: + "127.0.0.1:1980": 1 + type: roundrobin + #END +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: apisix-deployment +spec: + replicas: 1 + selector: + matchLabels: + app: apisix-deployment + strategy: + rollingUpdate: + maxSurge: 50% + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + app: apisix-deployment + spec: + terminationGracePeriodSeconds: 0 + containers: + - livenessProbe: + failureThreshold: 3 + initialDelaySeconds: 1 + periodSeconds: 2 + successThreshold: 1 + tcpSocket: + port: 9080 + timeoutSeconds: 2 + readinessProbe: + failureThreshold: 3 + initialDelaySeconds: 1 + periodSeconds: 2 + successThreshold: 1 + tcpSocket: + port: 9080 + timeoutSeconds: 2 + image: "apache/apisix:2.99.0-centos" + imagePullPolicy: IfNotPresent + name: apisix-deployment + # reference the apisix.yaml file in the mount directory to /usr/local/apisix/conf/apisix.yaml Review Comment: I'd suggest describing it as "creating a soft link" which is more intuitive and more idiomatic than using "reference". Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org