Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

policy-webhook-certs secrets are not getting created #217

Closed
MageshSrinivasulu opened this issue Jun 17, 2022 · 5 comments
Closed

policy-webhook-certs secrets are not getting created #217

MageshSrinivasulu opened this issue Jun 17, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@MageshSrinivasulu
Copy link

Can someone please provide details on how these secrets are getting populated? I my case its not showing. webhook-certs are working fine

policy-webhook-certs :

kubectl describe secret policy-webhook-certs
Name:         policy-webhook-certs
Namespace:    genesys-system
Labels:       app.kubernetes.io/instance=policy-controller
              app.kubernetes.io/managed-by=Helm
              app.kubernetes.io/name=policy-controller
              app.kubernetes.io/version=1.9.0
              control-plane=policy-controller-policy-webhook
              helm.sh/chart=policy-controller-0.1.25
Annotations:  meta.helm.sh/release-name: policy-controller
              meta.helm.sh/release-namespace: genesys-system

Type:  Opaque

Data
====

webhook-certs :

kubectl describe secret webhook-certs
Name:         webhook-certs
Namespace:    genesys-system
Labels:       app.kubernetes.io/instance=policy-controller
              app.kubernetes.io/managed-by=Helm
              app.kubernetes.io/name=policy-controller
              app.kubernetes.io/version=1.9.0
              control-plane=policy-controller-webhook
              helm.sh/chart=policy-controller-0.1.25
Annotations:  meta.helm.sh/release-name: policy-controller
              meta.helm.sh/release-namespace: genesys-system

Type:  Opaque

Data
====
server-cert.pem:  794 bytes
server-key.pem:   241 bytes
ca-cert.pem:      855 bytes
@MageshSrinivasulu MageshSrinivasulu added the bug Something isn't working label Jun 17, 2022
@hectorj2f
Copy link
Contributor

Those are created during the installation. It is done using knative. I tried increasing the delay of the probes, but it seems it is happening. Have you tried the latest char version?

@hectorj2f
Copy link
Contributor

It is done using this functionality https://knative.dev/docs/serving/using-auto-tls/

@MageshSrinivasulu
Copy link
Author

MageshSrinivasulu commented Jun 17, 2022

Those are created during the installation. It is done using knative. I tried increasing the delay of the probes, but it seems it is happening. Have you tried the latest char version?

@hectorj2f Yes I am using the latest available chart only. Is the delay configurable in the helm some how ?

version: 0.1.25
appVersion: 1.9.0

@hectorj2f
Copy link
Contributor

The certificates are not created because the leases (kubectl get leases) are not cleaned up for the webhooks. I managed to reproduce it by installing and deleting the chart.

I feel the solution could be one of these three:

  • delete the namespace where you installed the policy-controller chart when uninstalling it, if possible.
  • delete the leases before every re-installation.
  • wait until the leases expire (approx. 10min after creation)
  • create your own certs instead of relying on the auto-TLS

@MageshSrinivasulu
Copy link
Author

@hectorj2f Thanks, After clearing up the leases from the namespace. Chart got deployed successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants