You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kopf.on.startup()
def configure(settings: kopf.OperatorSettings, **_):
if os.environ.get('ENVIRONMENT') is None:
# Only as an example:
settings.admission.server = kopf.WebhookK3dServer(port=54321)
settings.admission.managed = 'auto.kopf.dev'
else:
# Assuming that the configuration is done manually:
settings.admission.server = kopf.WebhookServer(addr='0.0.0.0', port=8080)
settings.admission.managed = 'auto.kopf.dev'
I created a deployment and service and named service a custom_webhook_server_kopf:8080
and my pods are not able to reach out to the webhook server ?
HOw do i make sure my pods are able to connec tto webhook server , I have gone through the documentation but no help
No response
The text was updated successfully, but these errors were encountered:
Hi @mayankkhullar . I've been stuck on getting my admission controller to work too. this issue can help you as it helped me. If there are still some problems I would be happy to help.
Keywords
webhookserver
I deployed a sample python app using below code
@kopf.on.startup()
def configure(settings: kopf.OperatorSettings, **_):
if os.environ.get('ENVIRONMENT') is None:
# Only as an example:
settings.admission.server = kopf.WebhookK3dServer(port=54321)
settings.admission.managed = 'auto.kopf.dev'
else:
# Assuming that the configuration is done manually:
settings.admission.server = kopf.WebhookServer(addr='0.0.0.0', port=8080)
settings.admission.managed = 'auto.kopf.dev'
I created a deployment and service and named service a custom_webhook_server_kopf:8080
and my pods are not able to reach out to the webhook server ?
HOw do i make sure my pods are able to connec tto webhook server , I have gone through the documentation but no help
No response
The text was updated successfully, but these errors were encountered: