Skip to content

Commit

Permalink
Add keycloak manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin5605 committed Oct 13, 2023
1 parent a9399e1 commit ddd01ed
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kubernetes/manifests/keycloak/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Keycloak

[Keycloak](https://www.keycloak.org/) configuration

## Secrets
This deployment expects a number of secrets and environment variables to exist in a secret called `keycloak-secrets`.


| Environment | Description |
|-------------------------|------------------------------------|
| KEYCLOAK_ADMIN | Keycloak Admin Panel Username |
| KEYCLOAK_PASSWORD | Keycloak Admin Panel Password |
30 changes: 30 additions & 0 deletions kubernetes/manifests/keycloak/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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:22.0
args: ["start-dev"]
envFrom:
- secretRef:
name: keycloak-secrets
ports:
- name: http
containerPort: 8080
readinessProbe:
httpGet:
path: /realms/master
port: 8080
20 changes: 20 additions & 0 deletions kubernetes/manifests/keycloak/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: keycloak
spec:
ingressClassName: nginx
tls:
- hosts:
- keycloak.vipyrsec.com
rules:
- host: keycloak.vipyrsec.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: keycloak
port:
number: 8080
13 changes: 13 additions & 0 deletions kubernetes/manifests/keycloak/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: keycloak
labels:
app: keycloak
spec:
ports:
- name: http
port: 8080
targetPort: 8080
selector:
app: keycloak

0 comments on commit ddd01ed

Please sign in to comment.