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

Match gantry selectors to fix deployment #859

Merged
merged 1 commit into from
May 30, 2024

Conversation

cmelone
Copy link
Contributor

@cmelone cmelone commented May 30, 2024

At the moment, gantry isn't working correctly in the cluster:

$ kubectl exec -it spack-gantry-0 -c litestream -- sh                                                          
/ # wget spack-gantry.default.svc.cluster.local
Connecting to spack-gantry.default.svc.cluster.local (10.96.254.66:80)
wget: can't connect to remote host (10.96.254.66): Connection refused
/ # 
command terminated with exit code 1
$ kubectl describe svc spack-gantry
Name:              spack-gantry
Namespace:         default
Labels:            app=spack-gantry
                   svc=web
Annotations:       <none>
Selector:          app=spack-gantry,svc=web
...
Endpoints:         <none>

No endpoints are created for the service, meaning that the selector could be off.

Now, everything works fine (tested locally):

$ kubectl exec -it spack-gantry-0 -c litestream -- sh                                                           
/ # wget spack-gantry.default.svc.cluster.local
Connecting to spack-gantry.default.svc.cluster.local (10.96.201.218:80)
wget: server returned error: HTTP/1.1 404 Not Found
/ # 
command terminated with exit code 1
$ kubectl describe svc spack-gantry                                                                             
Name:              spack-gantry
Namespace:         default
Labels:            app=spack-gantry
                   svc=web
Annotations:       <none>
Selector:          app=spack-gantry,svc=web
...
Endpoints:         10.244.0.24:8080

@zackgalbreath zackgalbreath merged commit 4fa20f8 into spack:main May 30, 2024
1 check passed
@cmelone cmelone deleted the fix/gantry-selector branch June 11, 2024 17:13
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

Successfully merging this pull request may close these issues.

2 participants