Add pinbot to cluster
This commit is contained in:
parent
5dcc6c8eb5
commit
c39218582d
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- test
|
- misc
|
||||||
- authentik
|
- authentik
|
||||||
- networking
|
- networking
|
||||||
- drone
|
- drone
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- deployment.yaml
|
- pinbot
|
||||||
- ingress.yaml
|
|
||||||
- service.yaml
|
|
5
flux/cluster/apps/misc/pinbot/kustomization.yaml
Normal file
5
flux/cluster/apps/misc/pinbot/kustomization.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- pinbot.yaml
|
||||||
|
- secret.yaml
|
29
flux/cluster/apps/misc/pinbot/pinbot.yaml
Normal file
29
flux/cluster/apps/misc/pinbot/pinbot.yaml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: pinbot-deployment
|
||||||
|
namespace: misc
|
||||||
|
labels:
|
||||||
|
app: pinbot-deployment
|
||||||
|
keel.sh/policy: force
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: pinbot-deployment
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: pinbot-deployment
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: pinbot-deployment
|
||||||
|
image: registry.asraphiel.dev/library/pinbot:main
|
||||||
|
env:
|
||||||
|
- name: DISCORD_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: pinbot-secrets
|
||||||
|
key: token
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: registry-creds
|
|
@ -1,17 +1,17 @@
|
||||||
apiVersion: external-secrets.io/v1beta1
|
apiVersion: external-secrets.io/v1beta1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: vault-example
|
name: pinbot-secrets
|
||||||
namespace: test
|
namespace: misc
|
||||||
spec:
|
spec:
|
||||||
refreshInterval: "15s"
|
refreshInterval: "15s"
|
||||||
secretStoreRef:
|
secretStoreRef:
|
||||||
name: vault
|
name: vault
|
||||||
kind: ClusterSecretStore
|
kind: ClusterSecretStore
|
||||||
target:
|
target:
|
||||||
name: example-sync
|
name: pinbot-secrets
|
||||||
data:
|
data:
|
||||||
- secretKey: foobar
|
- secretKey: pinbot-discord-token
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: k8s/foo
|
key: k8s/pinbot
|
||||||
property: my-value
|
property: token
|
|
@ -2,7 +2,7 @@ apiVersion: external-secrets.io/v1beta1
|
||||||
kind: ExternalSecret
|
kind: ExternalSecret
|
||||||
metadata:
|
metadata:
|
||||||
name: registry-creds
|
name: registry-creds
|
||||||
namespace: test
|
namespace: misc
|
||||||
spec:
|
spec:
|
||||||
refreshInterval: "5m"
|
refreshInterval: "5m"
|
||||||
secretStoreRef:
|
secretStoreRef:
|
|
@ -1,27 +0,0 @@
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: whoami-deployment
|
|
||||||
namespace: test
|
|
||||||
labels:
|
|
||||||
app: whoami-deployment
|
|
||||||
keel.sh/policy: force
|
|
||||||
keel.sh/match-tag: "true"
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: whoami-deployment
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: whoami-deployment
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: whoami-deployment
|
|
||||||
imagePullPolicy: Always
|
|
||||||
image: registry.asraphiel.dev/whoami
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: registry-creds
|
|
|
@ -1,17 +0,0 @@
|
||||||
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
|
|
|
@ -1,8 +0,0 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- deployment.yaml
|
|
||||||
- ingress.yaml
|
|
||||||
- service.yaml
|
|
||||||
- registry-creds.yaml
|
|
||||||
- test-secret.yaml
|
|
|
@ -1,12 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: whoami-deployment-service
|
|
||||||
namespace: test
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: whoami-deployment
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
targetPort: 80
|
|
|
@ -8,3 +8,4 @@ resources:
|
||||||
- drone.yaml
|
- drone.yaml
|
||||||
- keel.yaml
|
- keel.yaml
|
||||||
- family.yaml
|
- family.yaml
|
||||||
|
- misc.yaml
|
||||||
|
|
6
flux/cluster/core/namespaces/misc.yaml
Normal file
6
flux/cluster/core/namespaces/misc.yaml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
kind: Namespace
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: misc
|
||||||
|
labels:
|
||||||
|
name: misc
|
Loading…
Reference in a new issue