Fyi, this is for a POC local single node setup (thus the “unusual” setup).
- Windows 11 x64 Pro
- Docker Kubernetes
- Nginx Ingress
- Spinnaker 1.34.3
In my hosts file, I created two DNS entries:
127.0.0.1 spinnaker.xxxsoftware.com
127.0.0.1 spinnaker-api.xxxsoftware.com
I then created self signed certs in pem format for those DNSes and created the TLS secrets:
spinnaker-api-tls kubernetes.io/tls 2 55m
spinnaker-tls kubernetes.io/tls 2 55m
Used Halyard to configure and deploy. All pods started up successfully:
spin-clouddriver-6497f78b7-95sgn 1/1 Running 1 (15m ago) 33m
spin-deck-79c9c7b878-pvlrf 1/1 Running 1 (14m ago) 33m
spin-echo-54ddd4f75c-5l5p2 1/1 Running 1 (15m ago) 33m
spin-front50-7bd9896765-lrlng 1/1 Running 1 (15m ago) 33m
spin-gate-65b448cd46-hn5kg 1/1 Running 1 (15m ago) 33m
spin-orca-bc5db9585-7pvt6 1/1 Running 2 (14m ago) 33m
spin-redis-d8b99f6d8-wg47p 1/1 Running 3 (15m ago) 2d19h
spin-rosco-7d577b847-qp6gk 1/1 Running 1 (15m ago) 33m
As part of the config, I also ran (and then redeployed):
hal config security ui edit --override-base-url https://spinnaker.xxxsoftware.com
hal config security api edit --override-base-url https://spinnaker-api.xxxsoftware.com
If I go to https://spinnaker.xxxsoftware.com, the Spinnaker UI shows up correctly, and I can use the UI to go to projects / applications / pipelines, etc. It all seems like its working.
If I go to https://spinnaker-api.xxxsoftware.com (with no resource), then it redirects me to https://spinnaker.xxxsoftware.com, not sure if its supposed to do that?
The problem is that if I go to https://spinnaker-api.xxxsoftware.com/swagger-ui.html, I get a 404.
Do I need to do anything to enable Swagger UI? From the docs, it seems like it should be enabled by default.
My ingress for the Gate API looks like this:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spinnaker-api
namespace: spinnaker
spec:
ingressClassName: nginx
rules:
- host: spinnaker-api.xxxsoftware.com
http:
paths:
- backend:
service:
name: spin-gate
port:
number: 8084
path: /
pathType: ImplementationSpecific
tls:
- hosts:
- spinnaker-api.xxxsoftware.com
secretName: spinnaker-api-tls
status:
loadBalancer:
ingress:
- hostname: localhost
Any idea on why Swagger URL is 404’ing?