Skip to content

Instantly share code, notes, and snippets.

View heisendumb's full-sized avatar

Guilherme Albuquerque heisendumb

View GitHub Profile
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: keycloak-scaling
namespace: sso
spec:
scaleTargetRef:
kind: DeploymentConfig
name: keycloak
apiVersion: v1
@heisendumb
heisendumb / env.yml
Last active May 12, 2020 18:40
keycloak-environment
env:
- name: DB_VENDOR
value: POSTGRES
- name: DB_ADDR
value: postgres.sso.svc.cluster.local
- name: DB_DATABASE
value: KEYCLOAK
@heisendumb
heisendumb / default.cli
Created May 12, 2020 15:31
cluster-script-jboss-keycloak
embed-server --server-config=standalone-ha.xml --std-out=echo
batch
/subsystem=jgroups/stack=udp/protocol=PING:remove()
/subsystem=jgroups/stack=udp/protocol=$keycloak_jgroups_discovery_protocol:add(add-index=0, properties=$keycloak_jgroups_discovery_protocol_properties)
/subsystem=jgroups/stack=tcp/protocol=MPING:remove()
/subsystem=jgroups/stack=tcp/protocol=$keycloak_jgroups_discovery_protocol:add(add-index=0, properties=$keycloak_jgroups_discovery_protocol_properties)
/subsystem=jgroups/channel=ee:write-attribute(name="stack", value=$keycloak_jgroups_transport_stack)
@heisendumb
heisendumb / postgres-sample.yml
Last active May 11, 2020 21:06
postgres-9-keycloak
---
kind: Service
apiVersion: v1
metadata:
name: postgres
labels:
name: postgres
spec:
ports:
- name: postgres
@heisendumb
heisendumb / Makefile
Last active May 13, 2020 14:43
makefile-keycloak-openshift
all: create
patch:
oc new-project sso
oc patch namespace sso -p '{"metadata": {"annotations": {"openshift.io/node-selector": "region=compute"}}}'
create:
oc create -f keycloak-https-mutual-tls.yml
database: