Add galerie site

This commit is contained in:
Julius 2022-05-24 09:30:35 +02:00
parent a62cbc5180
commit 87decc6090
Signed by: j00lz
GPG key ID: AF241B0AA237BBA2
13 changed files with 180 additions and 0 deletions

View 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

View 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

View file

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

View 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

View 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

View 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

View file

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

View file

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- galerie-main
- galerie-staging
- registry-creds.yaml

View 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

View file

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- galerie-main
- galerie-staging
- registry-creds.yaml

View 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

View file

@ -6,3 +6,4 @@ resources:
- networking - networking
- drone - drone
- keel - keel
- family

View file

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