Add core, add namespace
This commit is contained in:
parent
d16263dbb6
commit
af21060236
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- test
|
- test
|
||||||
|
|
|
@ -2,6 +2,7 @@ apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: whoami-deployment
|
name: whoami-deployment
|
||||||
|
namespace: test
|
||||||
labels:
|
labels:
|
||||||
app: whoami-deployment
|
app: whoami-deployment
|
||||||
keel.sh/policy: force
|
keel.sh/policy: force
|
||||||
|
@ -17,9 +18,8 @@ spec:
|
||||||
app: whoami-deployment
|
app: whoami-deployment
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: whoami-deployment
|
- name: whoami-deployment
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
image: traefik/whoami
|
image: traefik/whoami
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
|
||||||
|
|
|
@ -2,15 +2,16 @@ apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: whoami-deployment-ingress
|
name: whoami-deployment-ingress
|
||||||
|
namespace: test
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: "whoami.asraphiel.dev"
|
- host: "whoami.asraphiel.dev"
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: whoami-deployment-service
|
name: whoami-deployment-service
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
|
|
|
@ -2,10 +2,11 @@ apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: whoami-deployment-service
|
name: whoami-deployment-service
|
||||||
|
namespace: test
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: whoami-deployment
|
app: whoami-deployment
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
|
|
|
@ -5,8 +5,10 @@ metadata:
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
spec:
|
spec:
|
||||||
interval: 10m0s
|
interval: 10m0s
|
||||||
|
dependsOn:
|
||||||
|
- name: crds
|
||||||
path: ./flux/cluster/apps
|
path: ./flux/cluster/apps
|
||||||
prune: true
|
prune: true
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
name: flux-system
|
name: flux-system
|
||||||
|
|
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
|
@ -1,5 +1,5 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- gotk-components.yaml
|
- gotk-components.yaml
|
||||||
- gotk-sync.yaml
|
- gotk-sync.yaml
|
||||||
|
|
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