Add core, add namespace

This commit is contained in:
Julius 2022-05-22 15:05:59 +02:00
parent d16263dbb6
commit af21060236
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
12 changed files with 5391 additions and 4837 deletions

View file

@ -1,4 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- test
- test

View file

@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: whoami-deployment
namespace: test
labels:
app: whoami-deployment
keel.sh/policy: force
@ -17,9 +18,8 @@ spec:
app: whoami-deployment
spec:
containers:
- name: whoami-deployment
imagePullPolicy: Always
image: traefik/whoami
ports:
- containerPort: 80
- name: whoami-deployment
imagePullPolicy: Always
image: traefik/whoami
ports:
- containerPort: 80

View file

@ -2,15 +2,16 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: whoami-deployment-ingress
namespace: test
spec:
rules:
- host: "whoami.asraphiel.dev"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: whoami-deployment-service
port:
number: 80
- host: "whoami.asraphiel.dev"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: whoami-deployment-service
port:
number: 80

View file

@ -1,6 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- ingress.yaml
- service.yaml
- deployment.yaml
- ingress.yaml
- service.yaml

View file

@ -2,10 +2,11 @@ apiVersion: v1
kind: Service
metadata:
name: whoami-deployment-service
namespace: test
spec:
selector:
app: whoami-deployment
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 80

View file

@ -5,8 +5,10 @@ metadata:
namespace: flux-system
spec:
interval: 10m0s
dependsOn:
- name: crds
path: ./flux/cluster/apps
prune: true
sourceRef:
kind: GitRepository
name: flux-system
name: flux-system

View 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

View file

@ -1,5 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- gotk-components.yaml
- gotk-sync.yaml
- gotk-components.yaml
- gotk-sync.yaml

View file

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespaces

View file

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- test-name.yaml

View file

@ -0,0 +1,6 @@
kind: Namespace
apiVersion: v1
metadata:
name: test
labels:
name: test