Ory hydra in kubernetes

HI,

I am trying to deploy ory hydra in kubernetes, the problem is when I am creating client inside running pod(hydra container) its stating that clients create command is unknown for hydra.

can anyone help me with this!!

below is the job I am trying to run once hydra and postgres are up

below is my job template, please correct me where I am wrong

      command: ["hydra"]
      #args: ["clients create", "--endpoint http://127.0.0.1:4445", "--id gitea-client", "--secret secret", "--grant-types authorization_code,refresh_token", "--response-types code,id_token", "--scope openid,offline", "--callbacks http://127.0.0.1:8000/user/oauth2/ORY_Hydra/callback"]
      #command: ["hydra"]
      #args: ["token user", "--client-id gitea-client", "--client-secret secret", "--endpoint http://127.0.0.1:4444/", "--port 5555", "--scope openid,offline"]
      # command: ["hydra"]
      args:
        - hydra clients create;
          --endpoint http://127.0.0.1:4445;
          --id gitea-client;
          --secret secret;
          --grant-types authorization_code,refresh_token;
          --response-types code,id_token;
          --scope openid,offline;
          --callbacks http://127.0.0.1:8000/user/oauth2/ORY_Hydra/callback;
      # - token user
      #   --client-id gitea-client
      #   --client-secret secret
      #   --endpoint http://127.0.0.1:4444/
      #   --port 5555
      #   --scope openid,offline

Have you seen our helm charts? http://github.com/ory/k8s Maybe they can help

Hi,

thank you for the response, I solved the problem and created the kubernetes workflow.

just in case, if you want to check, here is my repo https://github.com/DKImprowised/Learning/tree/master/kubernetes-gitea-ingress/work

1 Like

Good job!

Thank You:)