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
first-vela-app cannot bind load balancer in AKS with default nginx ingress controller #2439
Comments
Thanks for reporting. Could you help provide the ingress object status? |
complete ingress yaml: apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
app.oam.dev/last-applied-configuration: '{"apiVersion":"networking.k8s.io/v1","kind":"Ingress","metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"core.oam.dev/v1beta1\",\"kind\":\"Application\",\"metadata\":{\"annotations\":{},\"name\":\"first-vela-app\",\"namespace\":\"default\"},\"spec\":{\"components\":[{\"name\":\"express-server\",\"properties\":{\"image\":\"crccheck/hello-world\",\"port\":8000},\"traits\":[{\"properties\":{\"domain\":\"testsvc.example.com\",\"http\":{\"/\":8000}},\"type\":\"ingress-1-20\"}],\"type\":\"webservice\"}]}}\n","oam.dev/kubevela-version":"v1.1.3"},"labels":{"app.oam.dev/app-revision-hash":"f7282e2c2debed00","app.oam.dev/appRevision":"first-vela-app-v2","app.oam.dev/component":"express-server","app.oam.dev/name":"first-vela-app","app.oam.dev/resourceType":"TRAIT","app.oam.dev/revision":"express-server-v1","trait.oam.dev/resource":"ingress","trait.oam.dev/type":"ingress-1-20"},"name":"express-server","namespace":"default","ownerReferences":[{"apiVersion":"core.oam.dev/v1beta1","blockOwnerDeletion":true,"controller":true,"kind":"ResourceTracker","name":"first-vela-app-v2-default","uid":"2756da8c-fdc2-4ea5-b1e1-e22a375e2cb1"}]},"spec":{"rules":[{"host":"testsvc.example.com","http":{"paths":[{"backend":{"service":{"name":"express-server","port":{"number":8000}}},"path":"/","pathType":"ImplementationSpecific"}]}}]}}'
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"core.oam.dev/v1beta1","kind":"Application","metadata":{"annotations":{},"name":"first-vela-app","namespace":"default"},"spec":{"components":[{"name":"express-server","properties":{"image":"crccheck/hello-world","port":8000},"traits":[{"properties":{"domain":"testsvc.example.com","http":{"/":8000}},"type":"ingress-1-20"}],"type":"webservice"}]}}
oam.dev/kubevela-version: v1.1.3
creationTimestamp: "2021-10-09T07:35:37Z"
generation: 1
labels:
app.oam.dev/app-revision-hash: f7282e2c2debed00
app.oam.dev/appRevision: first-vela-app-v2
app.oam.dev/component: express-server
app.oam.dev/name: first-vela-app
app.oam.dev/resourceType: TRAIT
app.oam.dev/revision: express-server-v1
trait.oam.dev/resource: ingress
trait.oam.dev/type: ingress-1-20
name: express-server
namespace: default
ownerReferences:
- apiVersion: core.oam.dev/v1beta1
blockOwnerDeletion: true
controller: true
kind: ResourceTracker
name: first-vela-app-v2-default
uid: 2756da8c-fdc2-4ea5-b1e1-e22a375e2cb1
resourceVersion: "1260581"
uid: 79afcbdd-9c79-481c-b0db-ba42f9cf12a4
spec:
rules:
- host: testsvc.example.com
http:
paths:
- backend:
service:
name: express-server
port:
number: 8000
path: /
pathType: ImplementationSpecific
status:
loadBalancer: {} complete description of the ingress:
|
It seems the ingress didn't create any loadBalancer because of lacking
|
Another possible reason is we need to add the annotation in the ingress object:
We don't have an AKS cluster, if you don't mind, please help verify it, thanks |
You are right. The reason is 'kubernetes.io/ingress.class: nginx' missing. |
Thanks for the verification, we can fix it by adding some parameters. |
@heavenwing Apply this yaml can fix the problem, we will fix it in #2445 :
|
above yaml have a little issue: namespace: {{.Values.systemDefinitionNamespace}} into namespace: vela-system And, for app yaml, I have to set class parameter, I mistaken think I can ignore it firstly apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: first-vela-app
spec:
components:
- name: express-server
type: webservice
properties:
image: crccheck/hello-world
port: 8000
traits:
- type: ingress-1-20
properties:
class: nginx
domain: testsvc.example.com
http:
"/": 8000 |
@heavenwing Sorry, we should remove
|
Describe the bug
I tried KubeVela quick-start in AKS, I follow this document to enable ingress. But after I deployed first-vela-app, I got below error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
curl -H "Host:testsvc.example.com" http://<your ip address>/
will get correct html contentsScreenshots
KubeVela Version
1.1.3
Cluster information
The text was updated successfully, but these errors were encountered: