Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keycloak manifests #33

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions kubernetes/manifests/keycloak/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 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 |
| KC_DB_URL | Keycloak Database Connection URL |
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
Loading