openyurtio / yurt-app-manager

The workload controller manager from NodePool level in OpenYurt cluster
Apache License 2.0
6 stars 1 forks source link

[BUG] yurtingress create fail #121

Open huiwq1990 opened 2 years ago

huiwq1990 commented 2 years ago

What happened:

When create yurtingress, yurtappmanager report clustrole yurt-app-manager-role not found.

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

helm upgrade --install -n kube-system yurt-app-manager openyurt/yurt-app-manager

cat<<EOF | kubectl apply -f -
apiVersion: apps.openyurt.io/v1alpha1
kind: YurtIngress
metadata:
  name: yurtingress-demo
spec:
  ingress_controller_replicas_per_pool: 2
  ingress_controller_image: huiwq1990/ingress-nginx-controller:v0.49.0
  ingress_webhook_certgen_image: docker.io/jettech/kube-webhook-certgen:v1.5.1
  pools:
    - name: sh-works
EOF

Anything else we need to know?:

Yurtingress depend clusterrole yurt-app-manager-role, as the code https://github.com/openyurtio/yurt-app-manager/blob/master/pkg/yurtappmanager/util/kubernetes/apply_addons.go#L45. But yurtappmanager's clusterrole depend serviceaccount, as the code https://github.com/openyurtio/yurt-app-manager/blob/master/charts/yurt-app-manager/templates/clusterrole.yaml#L4.

Environment:

others

/kind bug

rambohe-ch commented 2 years ago

@huiwq1990 which version of helm charts did you deploy? maybe you can have a try to use tag: openyurt-1.0.2 of openyurtio/openyurt-helm.