chore(keycloak): initial resource definitions
This commit is contained in:
parent
09fbc7e597
commit
291b6c6cc9
5 changed files with 88 additions and 0 deletions
19
apps/keycloak/base/keycloak-ingress.yaml
Normal file
19
apps/keycloak/base/keycloak-ingress.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: keycloak
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- keycloak.nc.landry.land
|
||||
rules:
|
||||
- host: keycloak.nc.landry.land
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: keycloak
|
||||
port:
|
||||
number: 8080
|
||||
49
apps/keycloak/base/keycloak.yaml
Normal file
49
apps/keycloak/base/keycloak.yaml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: keycloak
|
||||
labels:
|
||||
app: keycloak
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
selector:
|
||||
app: keycloak
|
||||
type: LoadBalancer
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: keycloak
|
||||
labels:
|
||||
app: keycloak
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: keycloak
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: keycloak
|
||||
spec:
|
||||
containers:
|
||||
- name: keycloak
|
||||
image: quay.io/keycloak/keycloak:24.0.2
|
||||
args: ["start-dev"]
|
||||
env:
|
||||
- name: KEYCLOAK_ADMIN
|
||||
value: "admin"
|
||||
- name: KEYCLOAK_ADMIN_PASSWORD
|
||||
value: "bBb5u75tZaDtdunw"
|
||||
- name: KC_PROXY
|
||||
value: "edge"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /realms/master
|
||||
port: 8080
|
||||
5
apps/keycloak/base/kustomization.yaml
Normal file
5
apps/keycloak/base/kustomization.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./keycloak.yaml
|
||||
- ./keycloak-ingress.yaml
|
||||
11
apps/keycloak/overlays/system/config.json
Normal file
11
apps/keycloak/overlays/system/config.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"appName": "keycloak",
|
||||
"userGivenName": "keycloak",
|
||||
"destNamespace": "media",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "apps/keycloak/overlays/system",
|
||||
"srcRepoURL": "ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
"annotations": null
|
||||
}
|
||||
4
apps/keycloak/overlays/system/kustomization.yaml
Normal file
4
apps/keycloak/overlays/system/kustomization.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../base
|
||||
Loading…
Add table
Add a link
Reference in a new issue