smitmistry77 commented on issue #2474: URL: https://github.com/apache/apisix-ingress-controller/issues/2474#issuecomment-3076678405
Hi Team, I can bring up the ingress-controller by using the admin_api_version: v3 properties, but I see that whatever Apisix route I create, it's not syncing, and there are no errors in the ingress-controller logs. --- apiVersion: v1 kind: ConfigMap metadata: name: apisix-ingress-config namespace: ot-model-services data: config.yaml: | log_level: debug log_output: "stderr" apisix_resource_sync_interval: "30s" apisix: admin_api_version: v3 default_cluster_base_url: http://apisix-cp.ot-model-services.svc.cluster.local:9180/apisix/admin default_cluster_admin_key: ****** kubernetes: kubeconfig: "" resync_interval: "30s" namespace_selector: [""] election_id: "ingress-apisix-leader" ingress_class: "apisix" ingress_version: "networking/v1" watch_endpointslices: false apisix_route_version: "apisix.apache.org/v2" enable_gateway_api: false api_version: apisix.apache.org/v2 plugin_metadata_cm: plugin-metadata-config-map disable_status_updates: false --- apiVersion: apps/v1 kind: Deployment metadata: name: apisix-ingress-controller namespace: ot-model-services spec: replicas: 1 selector: matchLabels: app: apisix-ingress-controller template: metadata: labels: app: apisix-ingress-controller spec: serviceAccountName: apisix-ingress-controller containers: - name: apisix-ingress-controller image: apache/apisix-ingress-controller:1.8.4 args: - ingress - --config-path=/app/conf/config.yaml env: - name: POD_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace - name: POD_NAME valueFrom: fieldRef: fieldPath: metadata.name volumeMounts: - mountPath: /app/conf/config.yaml name: config-volume subPath: config.yaml volumes: - name: config-volume configMap: name: apisix-ingress-config --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: apisix-ingress-controller rules: - apiGroups: [""] resources: ["endpoints", "services", "pods", "namespaces", "nodes","configmaps","secrets"] verbs: ["get", "list", "watch"] - apiGroups: ["networking.k8s.io"] resources: ["ingresses", "ingressclasses"] verbs: ["get", "list", "watch"] - apiGroups: ["coordination.k8s.io"] resources: ["leases",] verbs: ["get", "list", "watch","create", "update","delete", "patch"] - apiGroups: ["apisix.apache.org"] resources: ["*"] verbs: ["get", "list", "watch","create", "update","delete", "patch"] - apiGroups: [""] resources: ["events"] verbs: ["create", "patch"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: apisix-ingress-controller roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: apisix-ingress-controller subjects: - kind: ServiceAccount name: apisix-ingress-controller namespace: ot-model-services --- apiVersion: networking.k8s.io/v1 kind: IngressClass metadata: name: apisix spec: controller: apisix.apache.org/apisix-ingress-controller --- apiVersion: v1 kind: ServiceAccount metadata: name: apisix-ingress-controller namespace: ot-model-services --- apiVersion: apisix.apache.org/v2 kind: ApisixUpstream metadata: name: httpbin-upstream spec: externalNodes: - type: Domain name: httpbin.org --- # httpbin-route.yaml apiVersion: apisix.apache.org/v2 kind: ApisixRoute metadata: name: httpbin-route spec: http: - name: rule1 match: hosts: - httpbin.org paths: - /* # backends: # We won't use the `backends` field # - serviceName: httpbin # servicePort: 80 upstreams: - name: httpbin-upstream -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org