Add galerie site
This commit is contained in:
parent
a62cbc5180
commit
87decc6090
27
flux/cluster/apps/family/galerie-main/deployment.yaml
Normal file
27
flux/cluster/apps/family/galerie-main/deployment.yaml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: galerie-deployment
|
||||||
|
namespace: family
|
||||||
|
labels:
|
||||||
|
app: galerie-deployment
|
||||||
|
keel.sh/policy: force
|
||||||
|
keel.sh/match-tag: "true"
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: galerie-deployment
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: galerie-deployment
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: galerie-deployment
|
||||||
|
imagePullPolicy: Always
|
||||||
|
image: registry.asraphiel.dev/library/galerie:main
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: registry-creds
|
26
flux/cluster/apps/family/galerie-main/ingress.yaml
Normal file
26
flux/cluster/apps/family/galerie-main/ingress.yaml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: galerie-deployment-ingress
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: "galerievanslagmaat.nl"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: galerie-deployment-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
- host: "galerie.asraphiel.dev"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: galerie-deployment-service
|
||||||
|
port:
|
||||||
|
number: 80
|
6
flux/cluster/apps/family/galerie-main/kustomization.yaml
Normal file
6
flux/cluster/apps/family/galerie-main/kustomization.yaml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- service.yaml
|
12
flux/cluster/apps/family/galerie-main/service.yaml
Normal file
12
flux/cluster/apps/family/galerie-main/service.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: galerie-deployment-service
|
||||||
|
namespace: family
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: galerie-deployment
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
27
flux/cluster/apps/family/galerie-staging/deployment.yaml
Normal file
27
flux/cluster/apps/family/galerie-staging/deployment.yaml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: galerie-staging-deployment
|
||||||
|
namespace: family
|
||||||
|
labels:
|
||||||
|
app: galerie-staging-deployment
|
||||||
|
keel.sh/policy: force
|
||||||
|
keel.sh/match-tag: "true"
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: galerie-staging-deployment
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: galerie-staging-deployment
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: galerie-staging-deployment
|
||||||
|
imagePullPolicy: Always
|
||||||
|
image: registry.asraphiel.dev/library/galerie:staging
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: registry-creds
|
26
flux/cluster/apps/family/galerie-staging/ingress.yaml
Normal file
26
flux/cluster/apps/family/galerie-staging/ingress.yaml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: galerie-staging-deployment-ingress
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: "staging.galerievanslagmaat.nl"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: galerie-staging-deployment-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
- host: "galerie-staging.asraphiel.dev"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: galerie-staging-deployment-service
|
||||||
|
port:
|
||||||
|
number: 80
|
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- service.yaml
|
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- galerie-main
|
||||||
|
- galerie-staging
|
||||||
|
- registry-creds.yaml
|
12
flux/cluster/apps/family/galerie-staging/service.yaml
Normal file
12
flux/cluster/apps/family/galerie-staging/service.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: galerie-staging-deployment-service
|
||||||
|
namespace: family
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: galerie-staging-deployment
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
6
flux/cluster/apps/family/kustomization.yaml
Normal file
6
flux/cluster/apps/family/kustomization.yaml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- galerie-main
|
||||||
|
- galerie-staging
|
||||||
|
- registry-creds.yaml
|
19
flux/cluster/apps/family/registry-creds.yaml
Normal file
19
flux/cluster/apps/family/registry-creds.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: registry-creds
|
||||||
|
namespace: family
|
||||||
|
spec:
|
||||||
|
refreshInterval: "5m"
|
||||||
|
secretStoreRef:
|
||||||
|
name: vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: registry-creds
|
||||||
|
template:
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
- secretKey: .dockerconfigjson
|
||||||
|
remoteRef:
|
||||||
|
key: k8s/registry-creds
|
||||||
|
property: dockerconfigjson
|
|
@ -6,3 +6,4 @@ resources:
|
||||||
- networking
|
- networking
|
||||||
- drone
|
- drone
|
||||||
- keel
|
- keel
|
||||||
|
- family
|
||||||
|
|
6
flux/cluster/core/namespaces/family.yaml
Normal file
6
flux/cluster/core/namespaces/family.yaml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
kind: Namespace
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: family
|
||||||
|
labels:
|
||||||
|
name: family
|
Loading…
Reference in a new issue