hi:wave:, i was using chart `0.24.3` with kratos....
# ory-selfhosting
b
hi👋, i was using chart
0.24.3
with kratos.yaml with pinned version of
version:v0.10.1
after deployment, i got the following errors from kratos container:
Copy code
The configuration contains values or keys which are invalid:
The configuration contains values or keys which are invalid:
courier.smtp.connection_uri: <nil>
                             ^-- one or more required properties are missing

The configuration contains values or keys which are invalid:
selfservice.default_browser_return_url: <nil>
                                        ^-- one or more required properties are missing

The configuration contains values or keys which are invalid:
identity.schemas: <nil>
                  ^-- one or more required properties are missing

time=2022-07-25T17:58:20Z level=fatal msg=Unable to instantiate configuration. audience=application error=map[message:I[#] S[#] validation failed
  I[#/courier/smtp] S[#/properties/courier/properties/smtp/required] missing properties: "connection_uri"
  I[#/selfservice] S[#/properties/selfservice/required] missing properties: "default_browser_return_url"
  I[#/identity] S[#/properties/identity/required] missing properties: "schemas"] service_name=Ory Kratos service_version=v0.10.1
other resources apart from Deployment are successfully created. however i do have those config. i figured, it's not picking up the generated config, in kratos pod:
Copy code
Volumes:
  kratos-config-volume:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      ory-kratos-config
    Optional:  false
while the ConfigMap generated by kustomize is called
kratos-config-ttg2582gch
i just tried, even after i updated the name
Copy code
❯ kc get configmap -n kratos
NAME                       DATA   AGE
kratos-config              2      78s
kratos-config-ttg2582gch   1      80s
in pod description:
Copy code
Volumes:
  kratos-config-volume:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      kratos-config
    Optional:  false
kratos-config
is the auto-genreated one with empty content,
kratos-config-ttg2582gch
is the one generated by kustomize that has content seems pod probably doesn't recognize the ConfigMap generated by kustomize, and instead generate a default one
p
@worried-kitchen-94392 might be able to help you with this 🙂
👍 1
gratitude thank you 1
w
Hi there, can you explain your setup with kustomize a bit better? We package everything in charts, if you create resources by yourself, then you have yo supply them too
what i mean is, the chart creates the cm from the chart name https://github.com/ory/k8s/blob/master/helm/charts/kratos/templates/configmap-config.yaml#L5= if yoou are using kusstomize with a cmGenerator, it will have different naming convention
👍 1
gratitude thank you 1
b
thanks! i think it would be easier to just share with you the manifests i used, DM'ed you the repo link