You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/26 03:56:17 UTC
[GitHub] [apisix-ingress-controller] liujiabaoaa opened a new issue #938: apisix ingress controller 启动报错bad configuration: apisix base url is required
liujiabaoaa opened a new issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938
### Issue description
根据该文档进行安装部署。https://apisix.apache.org/zh/docs/ingress-controller/practices/the-hard-way
其中apisix部署没有问题。
部署到apisix ingress controller的时候 启动apisix ingress controller的deployment的pod的时候启动报错
bad configuration: apisix base url is required
部署了apisix的service的啊。configmap里面配置的有这些 都没有错的
apisix:
default_cluster_base_url: "http://apisix-admin.apisix:9180/apisix/admin"
default_cluster_admin_key: "edd1c9f034335f136f87ad84b625c8f1"
### Environment
生产环境
### Minimal test code / Steps to reproduce
1.安装apisix ingress controller执行以下yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: apisix-ingress-controller
namespace: apisix
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: apisix-clusterrole
rules:
- apiGroups:
- ""
resources:
- configmaps
- endpoints
- persistentvolumeclaims
- pods
- replicationcontrollers
- replicationcontrollers/scale
- serviceaccounts
- services
- secrets
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- bindings
- events
- limitranges
- namespaces/status
- pods/log
- pods/status
- replicationcontrollers/status
- resourcequotas
- resourcequotas/status
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- apps
resources:
- controllerrevisions
- daemonsets
- deployments
- deployments/scale
- replicasets
- replicasets/scale
- statefulsets
- statefulsets/scale
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- get
- list
- watch
- apiGroups:
- batch
resources:
- cronjobs
- jobs
verbs:
- get
- list
- watch
- apiGroups:
- extensions
resources:
- daemonsets
- deployments
- deployments/scale
- ingresses
- networkpolicies
- replicasets
- replicasets/scale
- replicationcontrollers/scale
verbs:
- get
- list
- watch
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- get
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
- ingresses
- networkpolicies
verbs:
- get
- list
- watch
- apiGroups:
- metrics.k8s.io
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- apisix.apache.org
resources:
- apisixroutes
- apisixroutes/status
- apisixupstreams
- apisixupstreams/status
- apisixtlses
- apisixtlses/status
- apisixclusterconfigs
- apisixclusterconfigs/status
- apisixconsumers
- apisixconsumers/status
verbs:
- get
- list
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- '*'
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: apisix-clusterrolebinding
namespace: apisix
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: apisix-clusterrole
subjects:
- kind: ServiceAccount
name: apisix-ingress-controller
namespace: apisix
2.执行以下代码
apiVersion: v1
data:
config.yaml: |
# log options
log_level: "debug"
log_output: "stderr"
http_listen: ":8080"
enable_profiling: true
kubernetes:
kubeconfig: ""
resync_interval: "30s"
namespace_selector:
- "apisix.ingress=watching"
ingress_class: "apisix"
ingress_version: "networking/v1"
apisix_route_version: "apisix.apache.org/v2beta3"
apisix:
default_cluster_base_url: "http://apisix-admin.apisix:9180/apisix/admin"
default_cluster_admin_key: "edd1c9f034335f136f87ad84b625c8f1"
kind: ConfigMap
metadata:
name: apisix-configmap
labels:
app.kubernetes.io/name: ingress-controller
3.执行以下代码
apiVersion: v1
kind: Service
metadata:
name: apisix-admin
labels:
app.kubernetes.io/name: apisix
spec:
type: ClusterIP
ports:
- name: apisix-admin
port: 9180
targetPort: 9180
protocol: TCP
selector:
app.kubernetes.io/name: apisix
4.执行以下代码
apiVersion: apps/v1
kind: Deployment
metadata:
name: apisix-ingress-controller
labels:
app.kubernetes.io/name: ingress-controller
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: ingress-controller
template:
metadata:
labels:
app.kubernetes.io/name: ingress-controller
spec:
serviceAccountName: apisix-ingress-controller
volumes:
- name: configuration
configMap:
name: apisix-configmap
items:
- key: config.yaml
path: config.yaml
initContainers:
- name: wait-apisix-admin
image: busybox:1.28
command: ['sh', '-c', "until nc -z apisix-admin.apisix.svc.cluster.local 9180 ; do echo waiting for apisix-admin; sleep 2; done;"]
containers:
- name: ingress-controller
command:
- /ingress-apisix/apisix-ingress-controller
- ingress
- --config-path
- /ingress-apisix/conf/config.yaml
image: "apache/apisix-ingress-controller:0.5.0"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: 8080
readinessProbe:
httpGet:
path: /healthz
port: 8080
resources:
{}
volumeMounts:
- mountPath: /ingress-apisix/conf
name: configuration
启动报错 bad configuration: apisix base url is required
### Actual result
bad configuration: apisix base url is required
### Error log
bad configuration: apisix base url is required
### Expected result
_No response_
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #938: apisix ingress controller 启动报错bad configuration: apisix base url is required
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938#issuecomment-1079703567
You can try to modify the image to the latest version, and submit a PR to update this document after the deployment is successful, thank you
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] liujiabaoaa commented on issue #938: docs: the-hard-way doc is out of date.
Posted by GitBox <gi...@apache.org>.
liujiabaoaa commented on issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938#issuecomment-1079705344
I tried to modify the version of apifix ingress controller again. The version of the image is 1.4.0, which has been solved.
What I want to know is whether there is a corresponding relationship between the version of APIs IX and the mirrored version of APIs IX ingress controller.
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #938: docs: the-hard-way doc is out of date.
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938#issuecomment-1085902162
Thanks @mangoGoForward
Assigned
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 closed issue #938: docs: the-hard-way doc is out of date.
Posted by GitBox <gi...@apache.org>.
tao12345666333 closed issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #938: docs: the-hard-way doc is out of date.
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938#issuecomment-1079704512
The error is due to the fact that when we introduced the default configuration option default_cluster_base_url , all relevant content was modified globally, but the rest of this document was not updated
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] mangoGoForward commented on issue #938: docs: the-hard-way doc is out of date.
Posted by GitBox <gi...@apache.org>.
mangoGoForward commented on issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938#issuecomment-1085639142
I'd like to update the doc of `the-hard-way`
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #938: apisix ingress controller 启动报错bad configuration: apisix base url is required
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938#issuecomment-1079702236
This documentation is out of date. Please note that the current latest version is v1.4.
The image used in your above configuration is 0.5.
The most recommended way is to install directly using Helm, which is the only way we currently maintain.
```
helm install apisix apisix/apisix \
--set gateway.type=NodePort \
--set ingress-controller.enabled=true \
--namespace ingress-apisix \
--set ingress-controller.config.apisix.serviceNamespace=ingress-apisix
```
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #938: docs: the-hard-way doc is out of date.
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938#issuecomment-1079705779
> 是的。我后来也发现了。我有个问题想请教下。apisix和apisix ingress controller版本的对应关系 在哪里呢?
In README
Prerequisites
> Apisix ingress controller requires Kubernetes version 1.16+. Because we used CustomResourceDefinition v1 stable API. From the version 1.0.0, APISIX-ingress-controller need to work with Apache APISIX version 2.7+.
In fact, their correspondence is maintained in the Helm chart
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] liujiabaoaa commented on issue #938: docs: the-hard-way doc is out of date.
Posted by GitBox <gi...@apache.org>.
liujiabaoaa commented on issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938#issuecomment-1079706394
well. got it. Because I want to understand the process by manually installing yaml files for the first time. Although helm is simple, he didn't understand it very well at first.
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] liujiabaoaa commented on issue #938: apisix ingress controller 启动报错bad configuration: apisix base url is required
Posted by GitBox <gi...@apache.org>.
liujiabaoaa commented on issue #938:
URL: https://github.com/apache/apisix-ingress-controller/issues/938#issuecomment-1079703660
是的。我后来也发现了。我有个问题想请教下。apisix和apisix ingress controller版本的对应关系 在哪里呢?
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org