Add core, add namespace
This commit is contained in:
parent
d16263dbb6
commit
af21060236
|
@ -2,6 +2,7 @@ apiVersion: apps/v1
|
|||
kind: Deployment
|
||||
metadata:
|
||||
name: whoami-deployment
|
||||
namespace: test
|
||||
labels:
|
||||
app: whoami-deployment
|
||||
keel.sh/policy: force
|
||||
|
@ -22,4 +23,3 @@ spec:
|
|||
image: traefik/whoami
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ apiVersion: networking.k8s.io/v1
|
|||
kind: Ingress
|
||||
metadata:
|
||||
name: whoami-deployment-ingress
|
||||
namespace: test
|
||||
spec:
|
||||
rules:
|
||||
- host: "whoami.asraphiel.dev"
|
||||
|
|
|
@ -2,6 +2,7 @@ apiVersion: v1
|
|||
kind: Service
|
||||
metadata:
|
||||
name: whoami-deployment-service
|
||||
namespace: test
|
||||
spec:
|
||||
selector:
|
||||
app: whoami-deployment
|
||||
|
|
|
@ -5,6 +5,8 @@ metadata:
|
|||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m0s
|
||||
dependsOn:
|
||||
- name: crds
|
||||
path: ./flux/cluster/apps
|
||||
prune: true
|
||||
sourceRef:
|
||||
|
|
13
flux/cluster/base/core.yaml
Normal file
13
flux/cluster/base/core.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: core
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m0s
|
||||
path: ./flux/cluster/core
|
||||
prune: false
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
File diff suppressed because it is too large
Load diff
4
flux/cluster/core/kustomization.yaml
Normal file
4
flux/cluster/core/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespaces
|
4
flux/cluster/core/namespaces/kustomization.yaml
Normal file
4
flux/cluster/core/namespaces/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- test-name.yaml
|
6
flux/cluster/core/namespaces/test-name.yaml
Normal file
6
flux/cluster/core/namespaces/test-name.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
kind: Namespace
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: test
|
||||
labels:
|
||||
name: test
|
Loading…
Reference in a new issue