Closed jakezhu9 closed 1 year ago
cd appops/http-echo/dev/ kusion apply -y kubectl describe ingress example-ingress -n http-echo
ingress works as expected
Name: example-ingress Labels: <none> Namespace: http-echo Address: Ingress Class: nginx Default backend: <default> Rules: Host Path Backends ---- ---- -------- * /apple app-service:5678 (<error: endpoints "app-service" not found>) Annotations: <none>
releaseVersion: v0.7.1 gitInfo: latestTag: v0.7.1 commit: 10eac925825c1bd087ad590d78670d3bcad6d5fd treeState: clean buildInfo: goVersion: go1.17.13 GOOS: linux GOARCH: amd64 numCPU: 2 compiler: gc buildTime: "2022-11-02 13:04:49" dependency: kclvmgoVersion: v0.4.3 kclPluginVersion: v0.4.1-alpha2
this is because the backen service name doesn't match service name
https://github.com/KusionStack/konfig/blob/4ab1d7fa4e397fb20b7d875cb0a05e7d7b9a083a/appops/http-echo/base/base.k#L33
https://github.com/KusionStack/konfig/blob/4ab1d7fa4e397fb20b7d875cb0a05e7d7b9a083a/appops/http-echo/base/base.k#L18
I will make a pr to fix it soon
Bug Report
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
ingress works as expected
3. What did you see instead (Required)
4. What is your KusionStack components version? (Required)