<p>I have a Kubernetes cluster on Azure, where I use Helm to make it easier to manage micro-services and other tools on it, and Keycloak is one of them.</p>
<p>I need to use magic link authenticator in one of my apps, I'm aware that I need to add an extension in my Keycloak chart, but I don't know how.</p>
<p>In the image <a href="https://github.com/codecentric/helm-charts/tree/master/charts/keycloak" rel="nofollow noreferrer">repository</a> I'm using, they explain how to add custom themes, via <em>extraInitContainers</em> param on chart configuration. I think I can achieve what I want through it.</p>
<p>In this <a href="https://github.com/stianst/keycloak-experimental/tree/master/magic-link" rel="nofollow noreferrer">tutorial</a> they say that's the extension, but I have no idea how to add this to my Keycloak instance on k8s by using helm charts. How do I achieve that?</p>
<p>Just more info about my config, I'm running louketo-proxy(as a side car) on some apps where I want to protect.</p>

asd123ea
<p>To publish a theme with original image, first <a href="https://www.keycloak.org/docs/latest/server_development/#deploying-themes" rel="nofollow noreferrer">create an archive with the thema</a>.</p>
<p>Create a file <code>custom-themes-values.yml</code> with a content:</p>
<pre><code>extraInitContainers: |
  - name: theme-provider
    image: busybox
    imagePullPolicy: IfNotPresent
    command:
      - sh
    args:
      - -c
      - |
        echo &quot;wgetting theme from maven...&quot;
        wget -O /theme/keycloak-theme.jar  https://repo1.maven.org/maven2/org/acme/keycloak-theme/1.0.0/keycloak-theme-1.0.0.jar
    volumeMounts:
      - name: theme
        mountPath: /theme

extraVolumeMounts: |
  - name: theme
    mountPath: /opt/jboss/keycloak/standalone/deployments

extraVolumes: |
  - name: theme
    emptyDir: {}

</code></pre>
<p>Run with:</p>
<pre><code>helm install keycloak codecentric/keycloak --values custom-themes-values.yml
</code></pre>
<p>ps: This example the theme was publish into maven repository, but you can copy a local file to.</p>
<p>This way you can adapt to magic-link.</p>
