Kubernetes OIDC config

Deploy Keycloak

Deployment configuration for Keycloak instance :

apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
  name: keycloak-deployment
  labels:
    app: keycloak
spec:
  replicas: 1
  selector:
    matchLabels:
      app: keycloak
  template:
    metadata:
      labels:
        app: keycloak
    spec:
      containers:
      - name: keycloak
        image: jboss/keycloak
        ports:
        - containerPort: 8080

Service configuration for Keycloak instance :

kind: Service
apiVersion: v1
metadata:
  name: keycloak-service
spec:
  selector:
    app: keycloak
  ports:
  - protocol: TCP
    port: 80
    targetPort: 8080

Then deploy your app :

kubectl apply -f kc-deploy.yaml kubectl apply -f kc-service.yaml

` cat <<EOF | kubectl create -f - apiVersion: apps/v1beta2 # for versions before 1.9.0 use apps/v1beta2 kind: Deployment metadata: name: keycloak-deployment labels: app: keycloak spec: replicas: 1 selector: matchLabels: app: keycloak template: metadata: labels: app: keycloak spec: containers:

  - name: keycloak
    image: jboss/keycloak
    ports:
    - containerPort: 8080

kind: Service apiVersion: v1 metadata: name: keycloak-service spec: selector: app: keycloak ports:

  • protocol: TCP port: 80 targetPort: 8080 type: LoadBalancer

EOF `{{execute}}

kc-deploy.yaml
kc-service.yaml
This tab will not be visible to users and provides only information to help authors when creating content.

Creating Katacoda Scenarios

Thanks for creating Katacoda scenarios. This tab is designed to help you as an author have quick access the information you need when creating scenarios.

Here are some useful links to get you started.

Running Katacoda Workshops

If you are planning to use Katacoda for workshops, please contact [email protected] to arrange capacity.

Debugging Scenarios

Below is the response from any background scripts run or files uploaded. This stream can aid debugging scenarios.

If you still need assistance, please contact [email protected]