Code Monkey home page Code Monkey logo

Comments (6)

ivanmatmati avatar ivanmatmati commented on September 7, 2024

Hi @Roxyrob , can you confirm that you're using Helm to deploy the Ingress Controller ?

from kubernetes-ingress.

Roxyrob avatar Roxyrob commented on September 7, 2024

Hi @ivanmatmati,
yes I'm using helm or ArgoCD using helm.

I use specific namespace. I tested with single and multiple instances each on dedicated namespace. Sometimes it start and create default certificate sometimes not... I tried to see log and delete/apply ingress with different configurations of tls.

No luck.

from kubernetes-ingress.

ivanmatmati avatar ivanmatmati commented on September 7, 2024

Ok, the controller doesn't manage the lifecycle of default certificates. It's handled by Helm charts. I suggest that you ask in their repository, you'll get an answer.

from kubernetes-ingress.

Roxyrob avatar Roxyrob commented on September 7, 2024

Until this issue is identified and resolved I found a WORKAROUND that seems stable enough.

Following this link: Haproxy document SSL / TLS

  1. Manually create a certificate
openssl req -x509 -newkey rsa:2048 -keyout example.key -out example.crt -days 365 -nodes -subj "/C=US/ST=Ohio/L=Columbus/O=MyCompany/CN=example.com"
  1. Manually create a secret
kubectl create secret tls haproxytempcert --cert="example.crt" --key="example.key"
  1. Temporary Change haproxy ingress ConfigMap
     kubectl edit configmap -n {namespace} {configmap_name}

       apiVersion: v1
       kind: ConfigMap
       metadata:
         name: ...
         namespace: ...
       data:
	 ...
         ssl-certificate: "default/haproxytempcert"    <===  (Add) 
    

Doing this seems "to wakeup" ingress controller that create default cert using haproxytempcert.
Default certificate now exists and contains my Self Signed certificate.
Now I can:

  1. Delete "ssl-certificate" from ConfigMap
     kubectl edit configmap -n {namespace} {configmap_name}

       apiVersion: v1
       kind: ConfigMap
       metadata:
         name: ...
         namespace: ...
       data:
         ...
    
  1. Delete secret
kubectl delete secret haproxytempcert

Default certificate survive and now contains default haproxy Self-Signed certificate.
What one expect from start.

from kubernetes-ingress.

Roxyrob avatar Roxyrob commented on September 7, 2024

Hi @ivanmatmati,
I'll ask in helm chart repo also if the deployment process is the same for times when default certificate is created and times is not.

Thank you

from kubernetes-ingress.

dkorunic avatar dkorunic commented on September 7, 2024

Noop, Helm Chart seems correct and this is not related to Ingress Controller either.

from kubernetes-ingress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.