Create helm chart to deploy APISIX in kubernetes cluster
- User
Create helm chart to deploy APISIX in kubernetes cluster
- Assistant
To deploy Apache APISIX in a Kubernetes cluster using Helm, you can create a custom Helm chart. Helm is a package manager for Kubernetes that helps in managing complex Kubernetes applications.
Below is an example of a Helm chart structure for deploying APISIX:
codeapisix-helm-chart/ ├── Chart.yaml ├── values.yaml ├── templates/ │ ├── deployment.yaml │ ├── service.yaml │ ├── configmap.yaml │ ├── ingress.yamlLet's build each component step by step:
1.
Chart.yamlThis file contains metadata about your Helm chart.
yamlapiVersion: v2 name: apisix description: A Helm chart for Apache APISIX version: 0.1.0 appVersion: 2.10.1 # Change it to the version you need2.
values.yamlThis file contains the default values for your Helm chart.
yamlreplicaCount: 2 image: repository: apache/apisix tag: 2.10.1 pullPolicy: IfNotPresent service: type: LoadBalancer port: 9080 nodePort: null ingress: enabled: false annotations: {} path: / hosts: - apisix.local tls: [] config: apisix: admin_key: # Authentication Configuration - name: admin key: edd1c9f034335f136f87ad84b625c8f1 role: admin nodes: - http://127.0.0.1:23793.
templates/deployment.yamlThis file defines the APISIX deployment.
yaml