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

Quick install stuck at Approving certificate #320

Open
richiesgr opened this issue Mar 28, 2022 · 3 comments
Open

Quick install stuck at Approving certificate #320

richiesgr opened this issue Mar 28, 2022 · 3 comments

Comments

@richiesgr
Copy link

Describe the bug
MacOS BigSur 11.6.4

To Reproduce
Quick install on local machine running docker and kubernetes (not minikube) normal docker install including kubernetes

Expected behavior
The process should finish

Output/Logs
Installing Trow in namespace: registry

Starting Kubernetes Resources
serviceaccount/trow created
role.rbac.authorization.k8s.io/trow created
clusterrole.rbac.authorization.k8s.io/trow created
rolebinding.rbac.authorization.k8s.io/trow created
clusterrolebinding.rbac.authorization.k8s.io/trow created
deployment.apps/trow-deploy created
service/trow created

Approving certificate. This may take some time.
.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Trow Info

  • quick-install
  • last from source git clone

Kubernetes

  • Docker desktop MacOS
  • Kubernetes 1.22.5
  • Container Runtime : docker-desktop Ready control-plane,master 4d23h v1.22.5 192.168.65.4 Docker Desktop 5.10.104-linuxkit docker://20.10.13
@uchi-mata
Copy link

uchi-mata commented Apr 26, 2022

Same issue here.
Init container shows the following:

Tue Apr 26 08:35:05 UTC 2022
Error from server (NotFound): secrets "trow-tls" not found
Generating new certificate
Getting IP of trow service
POD NAMESPACE: kube-public
POD NAME: trow-deploy-5fff66bc96-kdc8d
POD IP: 192.168.194.67
SERVICE IP: 10.100.167.152
2022/04/26 08:35:05 [INFO] generate received request
2022/04/26 08:35:05 [INFO] received CSR
2022/04/26 08:35:05 [INFO] generating key: rsa-4096
2022/04/26 08:35:06 [INFO] encoded CSR
Error from server (NotFound): certificatesigningrequests.certificates.k8s.io "trow.kube-public" not found
error: unable to recognize "STDIN": no matches for kind "CertificateSigningRequest" in version "certificates.k8s.io/v1beta1"

@checkmypi
Copy link

Yup, same problem here,
I'd say it's because in later version of k8s CertificateSigningRequest api is no longer in beta

I've hacked around it with following patch

--- a/quick-install/trow.yaml
+++ b/quick-install/trow.yaml
@@ -115,7 +115,7 @@ spec:
       initContainers:
       - name: trow-init
         image: containersol/trow:init
-        command: ["/init.sh"]
+        command: ["sh", "-c", "sed 's/beta1//;/authenticated/ a\\ \\ signerName: kubernetes.io/trow-io' /init.sh | sed '1 aset -x' > /tmp/init2.sh && chmod 755 /tmp/init2.sh && /tmp/init2.sh"]
         imagePullPolicy: Always
         env:
           - name: POD_NAME

@amouat
Copy link
Contributor

amouat commented Apr 28, 2022

Thanks! I'll try to take a look this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants