Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Authentication 在Keyclope kubernetes头盔图表中设置新的扩展_Authentication_Kubernetes_Keycloak_Kubernetes Helm - Fatal编程技术网

Authentication 在Keyclope kubernetes头盔图表中设置新的扩展

Authentication 在Keyclope kubernetes头盔图表中设置新的扩展,authentication,kubernetes,keycloak,kubernetes-helm,Authentication,Kubernetes,Keycloak,Kubernetes Helm,我在Azure上有一个Kubernetes集群,在那里我使用Helm使其更容易管理微服务和其他工具,Keyclope就是其中之一 我需要在我的一个应用程序中使用magic link authenticator,我知道我需要在我的KeyClope图表中添加一个扩展,但我不知道如何添加 在我使用的图像中,它们解释了如何通过图表配置上的extraInitContainers参数添加自定义主题。我想我可以通过它实现我想要的 在这篇文章中,他们说这是扩展,但我不知道如何通过使用头盔图表将其添加到我的k8s

我在Azure上有一个Kubernetes集群,在那里我使用Helm使其更容易管理微服务和其他工具,Keyclope就是其中之一

我需要在我的一个应用程序中使用magic link authenticator,我知道我需要在我的KeyClope图表中添加一个扩展,但我不知道如何添加

在我使用的图像中,它们解释了如何通过图表配置上的extraInitContainers参数添加自定义主题。我想我可以通过它实现我想要的

在这篇文章中,他们说这是扩展,但我不知道如何通过使用头盔图表将其添加到我的k8s上的KeyClope实例中。我如何做到这一点


关于我的配置的更多信息,我正在一些我想要保护的应用程序上运行louketo proxy(作为一个辅助工具)。

要发布带有原始图像的主题,首先

创建包含以下内容的文件
自定义主题值.yml

extraInitContainers: |
  - name: theme-provider
    image: busybox
    imagePullPolicy: IfNotPresent
    command:
      - sh
    args:
      - -c
      - |
        echo "wgetting theme from maven..."
        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: {}

运行时使用:

helm install keycloak codecentric/keycloak --values custom-themes-values.yml
ps:本例中主题发布到maven存储库中,但您可以将本地文件复制到


通过这种方式,您可以适应magic link。

要发布带有原始图像的主题,请首先

创建包含以下内容的文件
自定义主题值.yml

extraInitContainers: |
  - name: theme-provider
    image: busybox
    imagePullPolicy: IfNotPresent
    command:
      - sh
    args:
      - -c
      - |
        echo "wgetting theme from maven..."
        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: {}

运行时使用:

helm install keycloak codecentric/keycloak --values custom-themes-values.yml
ps:本例中主题发布到maven存储库中,但您可以将本地文件复制到

这样你就可以适应魔幻链接了