Add tickets thing
This commit is contained in:
parent
57aaf9d506
commit
b4ff52cf1b
|
@ -4,3 +4,4 @@ resources:
|
|||
- pinbot
|
||||
- registry-creds.yaml
|
||||
- whoami
|
||||
- tickets
|
||||
|
|
28
flux/cluster/apps/misc/tickets/deployment.yaml
Normal file
28
flux/cluster/apps/misc/tickets/deployment.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: tickets-deployment
|
||||
namespace: misc
|
||||
labels:
|
||||
app: tickets-deployment
|
||||
keel.sh/policy: force
|
||||
keel.sh/match-tag: "true"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: tickets-deployment
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: tickets-deployment
|
||||
spec:
|
||||
containers:
|
||||
- name: tickets-deployment
|
||||
imagePullPolicy: Always
|
||||
image: registry.asraphiel.dev/library/tickets:main
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: tickets-secrets
|
17
flux/cluster/apps/misc/tickets/ingress.yaml
Normal file
17
flux/cluster/apps/misc/tickets/ingress.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: tickets-deployment-ingress
|
||||
namespace: misc
|
||||
spec:
|
||||
rules:
|
||||
- host: "tickets.asraphiel.dev"
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: tickets-deployment-service
|
||||
port:
|
||||
number: 80
|
7
flux/cluster/apps/misc/tickets/kustomization.yaml
Normal file
7
flux/cluster/apps/misc/tickets/kustomization.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- ingress.yaml
|
||||
- service.yaml
|
||||
- secret.yaml
|
21
flux/cluster/apps/misc/tickets/secret.yaml
Normal file
21
flux/cluster/apps/misc/tickets/secret.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: tickets-secrets
|
||||
namespace: misc
|
||||
spec:
|
||||
refreshInterval: "15s"
|
||||
secretStoreRef:
|
||||
name: vault
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: tickets-secrets
|
||||
data:
|
||||
- secretKey: DATABASE_URL
|
||||
remoteRef:
|
||||
key: k8s/tickets
|
||||
property: db-secret
|
||||
- secretKey: ADMIN_PASSWORD
|
||||
remoteRef:
|
||||
key: k8s/tickets
|
||||
property: password
|
12
flux/cluster/apps/misc/tickets/service.yaml
Normal file
12
flux/cluster/apps/misc/tickets/service.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: tickets-deployment-service
|
||||
namespace: misc
|
||||
spec:
|
||||
selector:
|
||||
app: tickets-deployment
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
Loading…
Reference in a new issue