All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
atform.apps.keycloak.4.0.25.source-code.deploymentConfig.yml Maven / Gradle / Ivy
metadata:
annotations:
configmap.fabric8.io/update-on-change: "keycloak"
fabric8.io/target-platform: "openshift"
spec:
replicas: 1
strategy:
type: Recreate
recreateParams:
timeoutSeconds: 7200
template:
metadata:
annotations:
pod.beta.kubernetes.io/init-containers: |-
[{
"name": "openshift-ca-pemtokeystore",
"image": "jimmidyson/pemtokeystore:v0.2.0",
"imagePullPolicy": "IfNotPresent",
"args": [
"-keystore", "/tls-keystore/openshift-truststore.jks",
"-ca-file", "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt",
"-ca-file", "/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt",
"-ca-dir", "/usr/share/ca-certificates/mozilla"
],
"volumeMounts": [{
"name": "keycloak-tls",
"mountPath": "/tls-keystore"
}]
},
{
"name": "envvar-substitution",
"image": "fabric8/envsubst-file:1.0.0",
"imagePullPolicy": "IfNotPresent",
"args": [
"fabric8-realm.json"
],
"env": [{
"name": "WIT_URL",
"valueFrom": {
"configMapKeyRef": {
"name": "keycloak",
"key": "wit.api.url"
}
}
},
{
"name": "KEYCLOAK_URL",
"valueFrom": {
"configMapKeyRef": {
"name": "keycloak",
"key": "keycloak.url"
}
}
},
{
"name": "FABRIC8_URL",
"valueFrom": {
"configMapKeyRef": {
"name": "keycloak",
"key": "fabric8.url"
}
}
},
{
"name": "KEYCLOAK_PRIVATEKEY",
"valueFrom": {
"secretKeyRef": {
"name": "keycloak",
"key": "kc.private.key"
}
}
},
{
"name": "KEYCLOAK_PUBLICKEY",
"valueFrom": {
"secretKeyRef": {
"name": "keycloak",
"key": "kc.public.key"
}
}
},
{
"name": "KEYCLOAK_CLIENTID_SECRET",
"valueFrom": {
"secretKeyRef": {
"name": "keycloak",
"key": "kc.clientid.secret"
}
}
},
{
"name": "K8S_API_SERVER",
"valueFrom": {
"configMapKeyRef": {
"name": "keycloak",
"key": "apiserver.url"
}
}
}],
"volumeMounts": [
{
"name": "keycloak-config",
"mountPath": "/workdir/fabric8-realm.json",
"subPath": "config/fabric8-realm.json"
},
{
"name": "keycloak-subst-config",
"mountPath": "/processed"
}
]
}]
spec:
containers:
- image: fabric8/keycloak-postgres:${keycloak.version}
args:
- -b $(INTERNAL_POD_IP)
- -Djgroups.bind_addr=global
- -Djboss.node.name=$(INTERNAL_POD_IP)
- -Djavax.net.ssl.trustStore=/opt/jboss/keycloak/standalone/configuration/tls/openshift-truststore.jks
- -Dkeycloak.migration.action=import
- -Dkeycloak.migration.provider=singleFile
- -Dkeycloak.migration.file=/opt/jboss/keycloak/standalone/configuration/import/fabric8-realm.json
- -Dkeycloak.migration.strategy=OVERWRITE_EXISTING
env:
- name: POSTGRES_HOSTNAME
value: keycloak-db
- name: POSTGRES_USER
value: keycloak
- name: POSTGRES_PASSWORD
value: keycloak
- name: OPERATING_MODE
value: standalone
- name: POSTGRES_PORT_5432_TCP_ADDR
value: keycloak-db
- name: INTERNAL_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: KEYCLOAK_USER
valueFrom:
secretKeyRef:
name: keycloak
key: kc.user
- name: KEYCLOAK_PASSWORD
valueFrom:
secretKeyRef:
name: keycloak
key: kc.password
- name: KEYCLOAK_CLIENTID_SECRET
valueFrom:
secretKeyRef:
name: keycloak
key: kc.clientid.secret
- name: KEYCLOAK_PRIVATEKEY
valueFrom:
secretKeyRef:
name: keycloak
key: kc.private.key
- name: KEYCLOAK_PUBLICKEY
valueFrom:
secretKeyRef:
name: keycloak
key: kc.public.key
readinessProbe:
httpGet:
path: "/auth"
port: 8080
initialDelaySeconds: 10
timeoutSeconds: 10
livenessProbe:
httpGet:
path: "/auth"
port: 8080
initialDelaySeconds: 60
timeoutSeconds: 10
volumeMounts:
- name: keycloak-tls
mountPath: /opt/jboss/keycloak/standalone/configuration/tls
- name: keycloak-subst-config
mountPath: /opt/jboss/keycloak/standalone/configuration/import
volumes:
- name: keycloak-tls
emptyDir: {}
- name: keycloak-subst-config
emptyDir: {}
- name: keycloak-config
configMap:
name: keycloak
items:
- key: fabric8-realm.json
path: config/fabric8-realm.json