Skip to content

Can't deploy #109

@brandoncc

Description

@brandoncc

I absolutely love the idea of Kuby, thanks for giving the Railsconf talk about it.

Unfortunately, I don't know anything about Kubernetes and I'm unable to deploy my first app. I created a new rails app and gave it a working root page. Then I followed the quick start guide and everything works up until the deploy step.

Here is the failed step output when deploying to digital ocean:

[INFO][2022-09-04 13:39:35 -0700]	------------------------------------------Result: FAILURE-------------------------------------------
[FATAL][2022-09-04 13:39:35 -0700]	Command failed: apply -f /var/folders/2d/ybxhkvf55qqf5jp90nm_mxch0000gn/t/d20220904-83925-f2cjjl
[FATAL][2022-09-04 13:39:35 -0700]
[FATAL][2022-09-04 13:39:35 -0700]	WARNING: Any resources not mentioned in the error(s) below were likely created/updated. You may wish to roll back this deploy.
[FATAL][2022-09-04 13:39:35 -0700]
[FATAL][2022-09-04 13:39:35 -0700]	Invalid template: Ingress-kubytest-ingress20220904-83925-c8a9v4.yml
[FATAL][2022-09-04 13:39:35 -0700]	> Error message:
[FATAL][2022-09-04 13:39:35 -0700]	    Error from server (InternalError): error when creating "/var/folders/2d/ybxhkvf55qqf5jp90nm_mxch0000gn/T/d20220904-83925-f2cjjl/Ingress-kubytest-ingress20220904-83925-c8a9v4.yml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": failed to call webhook: Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": EOF
[FATAL][2022-09-04 13:39:35 -0700]	> Template content:
[FATAL][2022-09-04 13:39:35 -0700]	    ---
[FATAL][2022-09-04 13:39:35 -0700]	    apiVersion: networking.k8s.io/v1
[FATAL][2022-09-04 13:39:35 -0700]	    kind: Ingress
[FATAL][2022-09-04 13:39:35 -0700]	    metadata:
[FATAL][2022-09-04 13:39:35 -0700]	      annotations:
[FATAL][2022-09-04 13:39:35 -0700]	        kubernetes.io/ingress.class: nginx
[FATAL][2022-09-04 13:39:35 -0700]	        cert-manager.io/cluster-issuer: letsencrypt-production
[FATAL][2022-09-04 13:39:35 -0700]	      name: kubytest-ingress
[FATAL][2022-09-04 13:39:35 -0700]	      namespace: kubytest-production
[FATAL][2022-09-04 13:39:35 -0700]	    spec:
[FATAL][2022-09-04 13:39:35 -0700]	      rules:
[FATAL][2022-09-04 13:39:35 -0700]	      - host: localhost
[FATAL][2022-09-04 13:39:35 -0700]	        http:
[FATAL][2022-09-04 13:39:35 -0700]	          paths:
[FATAL][2022-09-04 13:39:35 -0700]	          - backend:
[FATAL][2022-09-04 13:39:35 -0700]	              service:
[FATAL][2022-09-04 13:39:35 -0700]	                name: kubytest-svc
[FATAL][2022-09-04 13:39:35 -0700]	                port:
[FATAL][2022-09-04 13:39:35 -0700]	                  name: http
[FATAL][2022-09-04 13:39:35 -0700]	            path: "/"
[FATAL][2022-09-04 13:39:35 -0700]	            pathType: Prefix
[FATAL][2022-09-04 13:39:35 -0700]	      - host: localhost
[FATAL][2022-09-04 13:39:35 -0700]	        http:
[FATAL][2022-09-04 13:39:35 -0700]	          paths:
[FATAL][2022-09-04 13:39:35 -0700]	          - backend:
[FATAL][2022-09-04 13:39:35 -0700]	              service:
[FATAL][2022-09-04 13:39:35 -0700]	                name: kubytest-assets-svc
[FATAL][2022-09-04 13:39:35 -0700]	                port:
[FATAL][2022-09-04 13:39:35 -0700]	                  name: http
[FATAL][2022-09-04 13:39:35 -0700]	            path: "/assets"
[FATAL][2022-09-04 13:39:35 -0700]	            pathType: Prefix
[FATAL][2022-09-04 13:39:35 -0700]	          - backend:
[FATAL][2022-09-04 13:39:35 -0700]	              service:
[FATAL][2022-09-04 13:39:35 -0700]	                name: kubytest-assets-svc
[FATAL][2022-09-04 13:39:35 -0700]	                port:
[FATAL][2022-09-04 13:39:35 -0700]	                  name: http
[FATAL][2022-09-04 13:39:35 -0700]	            path: "/packs"
[FATAL][2022-09-04 13:39:35 -0700]	            pathType: Prefix
[FATAL][2022-09-04 13:39:35 -0700]	      tls:
[FATAL][2022-09-04 13:39:35 -0700]	      - hosts:
[FATAL][2022-09-04 13:39:35 -0700]	        - localhost
[FATAL][2022-09-04 13:39:35 -0700]	        secretName: kubytest-tls
[FATAL][2022-09-04 13:39:35 -0700]
Command failed: apply -f /var/folders/2d/ybxhkvf55qqf5jp90nm_mxch0000gn/T/d20220904-83925-f2cjjl

Is have tried both Kubernetes server 1.24 and 1.23.

Is this a known problem? I don't know where to start to debug. Thanks for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions