Skip to content

Commit

Permalink
kustomization
Browse files Browse the repository at this point in the history
  • Loading branch information
dezren39 committed Jan 1, 2025
1 parent adfe966 commit 847a47f
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 0 deletions.
22 changes: 22 additions & 0 deletions apps/apisix/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- namespace.yaml

helmCharts:
- name: apisix
repo: https://charts.apiseven.com
version: 1.x.x
releaseName: apisix
includeCRDs: true
valuesInline:
dashboard:
enabled: true
ingress-controller:
enabled: true

commonLabels:
app.kubernetes.io/managed-by: kustomize

namespace: MUST_BE_SET
4 changes: 4 additions & 0 deletions apps/apisix/base/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: MUST_BE_SET
24 changes: 24 additions & 0 deletions apps/apisix/overlays/testing/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base

namespace: testing-apisix

patches:
- path: namespace-patch.yaml

helmCharts:
- name: apisix
repo: https://charts.apiseven.com
version: 1.x.x
releaseName: apisix
includeCRDs: true
valuesInline:
ingress-controller:
config:
apisix:
serviceNamespace: testing-apisix
global:
namespace: testing-apisix
8 changes: 8 additions & 0 deletions apps/apisix/overlays/testing/namespace-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: testing-apisix
labels:
environment: testing
app.kubernetes.io/name: apisix
app.kubernetes.io/instance: testing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 847a47f

Please sign in to comment.