Skip to content

Deployment

Kubernetes with DevSpace

Prerequisites

Base64 encode the Keycloak Client Secret and Copy the Output

echo <keycloak-client-secret> | base64

Update secret.yaml with Base64 Encoded Keycloak Client Secret Copied from Previous Step

```diff
apiVersion: v1
kind: Secret
metadata:
    name: keycloak-client
type: Opaque
data:
-  KEYCLOAK_CLIENT_SECRET: base64-data
+  KEYCLOAK_CLIENT_SECRET: <base64-encoded-client-secret> 
```

Create Kubernetes Secret

kubectl apply -f secret.yml -n devops

Set correct values for Environment variables in devspace.yaml

KEYCLOAK_CLIENT_ID

KEYCLOAK_ISSUER

APP_SECRET

TITLE

Deploy

devspace use namespace devops
devspace deploy