ci: add kustomization

This commit is contained in:
Zpekii
2026-01-25 16:21:38 +08:00
parent d21cd672a6
commit 78c839f3a7
2 changed files with 11 additions and 1 deletions

View File

@@ -1,4 +1,9 @@
apiVersion: v1 apiVersion: v1
kind: Namespace
metadata:
name: helloapp
---
apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: go-example name: go-example
@@ -52,7 +57,7 @@ spec:
name: go-example-config name: go-example-config
- name: helloapp-test-key - name: helloapp-test-key
secret: secret:
secretName: helloapp-test-key secretName: helloapp-test-key # 需要事先创建该 Secret
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap

5
kustomization.yaml Normal file
View File

@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- flux-system/