Hello. :wave: Trying to deploy Kratos via Helm bei...
# ory-selfhosting
l
Hello. πŸ‘‹ Trying to deploy Kratos via Helm being connected to a postgres database. I am using the following values.yaml as per https://github.com/ory/k8s/blob/master/helm/charts/kratos/values.yaml :
Copy code
image:
  tag: "v0.8.0-alpha.3"
kratos:
  development: false
  autoMigrate: false
  config:
    dsn: "postgres://**:**@****/kratos?sslmode=disable&max_conns=20&max_idle_conns=4"
    secrets:
      default:
        - *****
    log:
      level: trace
    courier:
      smtp:
        connection_uri: smtp://
    serve:
      public:
        port: 4433
      admin:
        port: 4434
    identity:
      default_schema_url: file:///etc/config/identity.schema.json
    selfservice:
      default_browser_return_url: <http://127.0.0.1>
  secret:
    enabled: true
  identitySchemas:
    "identity.schema.json": |
      TRUNCATED
deployment:
  # -- Configure the probes for when the deployment is considered ready and ongoing health check
  livenessProbe:
    httpGet:
      path: /health/alive
      port: 4434
    initialDelaySeconds: 30
    periodSeconds: 10
    failureThreshold: 5
  readinessProbe:
    httpGet:
      path: /health/ready
      port: 4434
    initialDelaySeconds: 30
    periodSeconds: 10
    failureThreshold: 5
service:
  admin:
    enabled: true
    type: ClusterIP
    port: 80
    # -- The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
    name: http
    # -- Provide custom labels. Use the same syntax as for annotations.
    labels: {}
    # -- If you do want to specify annotations, uncomment the following
    # lines, adjust them as necessary, and remove the curly braces after 'annotations:'.
    annotations: {}
    # <http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: nginx
    # <http://kubernetes.io/tls-acme|kubernetes.io/tls-acme>: "true"
  public:
    enabled: true
    type: ClusterIP
    port: 80
    # -- The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
    name: http
    # -- Provide custom labels. Use the same syntax as for annotations.
    labels: {}
    # -- If you do want to specify annotations, uncomment the following
    # lines, adjust them as necessary, and remove the curly braces after 'annotations:'.
    annotations: {}
    # <http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: nginx
    # <http://kubernetes.io/tls-acme|kubernetes.io/tls-acme>: "true
However I am seeing few things: β€’ there are a lot on messages about sqlite3 migrations file
Copy code
β”‚ time=2022-01-17T15:51:37Z level=debug msg=Ignoring migration file 20210817181232000004_unique_credentials.sqlite3.up.sql because dialect is n β”‚β”‚ ot supported: unsupported dialect sqlite3 audience=application service_name=Ory Kratos service_version=v0.8.0-alpha.3
where does this come from ? β€’ it fails to start up as health api is giving 503
Copy code
time=2022-01-17T15:55:06Z level=info msg=completed handling request http_request=map[headers:map[accept:*/* connection:close user-agent:kube- β”‚
β”‚ probe/1.21] host:10.1.1.64:4434 method:GET path:/health/ready query:<nil> remote:10.1.0.1:62538 scheme:http] http_response=map[headers:map[co β”‚β”‚ ntent-type:application/json; charset=utf-8] size:78 status:503 text_status:Service Unavailable took:1.0002023s]
Is there any working
values.yaml
I can check or minimum configuration I need to make to get Kratos running ? Thanks in advance πŸ™‚
p
Hi @User Please see this document https://k8s.ory.sh/helm/kratos.html. This will guide you on how to setup Kratos
l
Hey @User I saw that, tried but for example there are some missing info there like the smtp connection URI is mandatory which is not mentioned there. I received from one of your colleagues this yaml, will try it and see if it’s working - https://github.com/ory/k8s/blob/master/.circleci/values/kratos.yaml#L73