-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
87 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
##### | ||
# | ||
# Deploy minimal postgres database | ||
# | ||
# kubectl apply -n postgres -f samples/ha/postgres.yaml | ||
# | ||
# Required Zalando Postgres operator installed on the cluster | ||
# https://github.com/zalando/postgres-operator?tab=readme-ov-file | ||
# | ||
|
||
apiVersion: "acid.zalan.do/v1" | ||
kind: postgresql | ||
metadata: | ||
name: minimal-postgres | ||
spec: | ||
teamId: myorgs | ||
spiloFSGroup: 103 | ||
spiloRunAsGroup: 103 | ||
spiloRunAsUser: 101 | ||
volume: | ||
size: 1Gi | ||
numberOfInstances: 1 | ||
preparedDatabases: | ||
keycloakdb: | ||
defaultUsers: false | ||
schemas: | ||
keycloak: | ||
defaultUsers: true | ||
postgresql: | ||
version: "15" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// Keycloak deployment minimum requirdement | ||
// | ||
// ! Not for prodution usage, Keycloak configuration is store on an empty directory | ||
// | ||
|
||
@if(!debug) | ||
|
||
package main | ||
|
||
// Defaults | ||
values: { | ||
|
||
admin: { | ||
password: {value: "admin"} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +0,0 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: test | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: web | ||
app.kubernetes.io/managed-by: timoni | ||
app.kubernetes.io/name: keycloak | ||
app.kubernetes.io/version: 0.0.0-devel | ||
name: keycloak-web | ||
namespace: test | ||
spec: | ||
ports: | ||
- appProtocol: http | ||
name: http | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: http | ||
selector: | ||
app.kubernetes.io/name: keycloak | ||
type: ClusterIP | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app.kubernetes.io/managed-by: timoni | ||
app.kubernetes.io/name: keycloak | ||
app.kubernetes.io/version: 0.0.0-devel | ||
name: keycloak | ||
namespace: test | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: keycloak | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: keycloak | ||
spec: | ||
containers: | ||
- command: | ||
- /opt/keycloak/bin/kc.sh | ||
- start | ||
env: | ||
- name: KC_HEALTH_ENABLED | ||
value: "true" | ||
- name: KC_HTTP_ENABLED | ||
value: "true" | ||
- name: KC_CACHE | ||
value: local | ||
- name: KEYCLOAK_ADMIN | ||
value: admin | ||
- name: KEYCLOAK_ADMIN_PASSWORD | ||
value: admin | ||
image: quay.io/keycloak/keycloak:23.0@sha256:cff31dc6fbb0ab0b66176b990e6b9e262fa74a501abb9a4bfa4a529cbc8a526a | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /health | ||
port: http | ||
scheme: HTTP | ||
periodSeconds: 30 | ||
successThreshold: 1 | ||
timeoutSeconds: 10 | ||
name: keycloak | ||
ports: | ||
- containerPort: 8080 | ||
name: http | ||
protocol: TCP | ||
readinessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /health | ||
port: http | ||
scheme: HTTP | ||
periodSeconds: 15 | ||
successThreshold: 1 | ||
timeoutSeconds: 10 | ||
resources: | ||
requests: | ||
cpu: 200m | ||
memory: 768Mi | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
privileged: false | ||
readOnlyRootFilesystem: false | ||
runAsNonRoot: true | ||
seccompProfile: | ||
type: RuntimeDefault | ||
startupProbe: | ||
failureThreshold: 30 | ||
httpGet: | ||
path: /health | ||
port: http | ||
scheme: HTTP | ||
initialDelaySeconds: 30 | ||
periodSeconds: 15 | ||
volumeMounts: [] | ||
serviceAccountName: default | ||
volumes: [] | ||
--- | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters