You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "yagelkt (via GitHub)" <gi...@apache.org> on 2023/10/15 14:30:01 UTC
[I] Unable to install and enable plugins from helm chart [apisix-helm-chart]
yagelkt opened a new issue, #642:
URL: https://github.com/apache/apisix-helm-chart/issues/642
I installed apisix successfully helm chart with ArgoCd application.
I then tried to add the "limit-count" plugin, but when I open the dashboard I don't see this plugin.
I can add this plugin manually.
This is the Apisix application yaml I used:
```
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: loadbalancer-apisix
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: api-gw
server: https://kubernetes.default.svc
project: default
source:
chart: apisix
repoURL: https://charts.apiseven.com
targetRevision: v2.1.0
helm:
releaseName: apisix
values: |
service:
type: LoadBalancer
annotations:
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tls
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: Environment=dev
ingress-controller:
enabled: "true"
config:
apisix:
serviceNamespace: "api-gw"
adminAPIVersion: v3
plugins: ["limit-count"]
pluginAttrs: {
"limit-count": {
"count": 2,
"time_window": 60,
"rejected_code": 503,
"key": "remote_addr",
"policy": "redis",
"redis_host": "apisix-redis-master.default.svc.cluster.local",
"redis_port": 6379,
"redis_password": "my_pass",
"redis_database": 1,
"redis_timeout": 1001
}
}
dashboard:
enabled: "true"
syncPolicy:
automated: {}
syncOptions:
- CreateNamespace=true
```
Any idea why it didn't work? (I don't think it has anything to do with argocd - it just a normal helm installation).
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Unable to install and enable plugins from helm chart [apisix-helm-chart]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #642:
URL: https://github.com/apache/apisix-helm-chart/issues/642#issuecomment-6095858289
APISIX chart 2.18.0 supports declaring global plugins through Helm values without manually calling the Admin API. It packages Controller chart 1.3.0 (Controller 2.2.0). Plugin loading and plugin rules are separate: apisix.plugins is the list of plugin names, and apisix.pluginAttrs sets static attributes. Rate-limit parameters belong in a plugin rule, not in pluginAttrs.
For example, these values generate a global rate-limit rule (it applies globally; configure the plugin on a route if only that route should be limited):
```
ingress-controller:
enabled: true
gatewayProxy:
createDefault: true
provider:
controlPlane:
service:
name: <actual APISIX Admin Service name>
plugins:
- name: limit-count
enabled: true
config:
count: 2
time_window: 60
rejected_code: 503
key: remote_addr
policy: local
```
Configure Admin API authentication for your environment. This example uses local counters; Redis settings also belong in this config. A Prometheus global rule can be declared in the same plugin list. Note that the 1.3.0 subchart values example indents plugins under provider, but the template reads gatewayProxy.plugins, at the same level as provider.
--
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
Re: [I] Unable to install and enable plugins from helm chart [apisix-helm-chart]
Posted by "adussarps (via GitHub)" <gi...@apache.org>.
adussarps commented on issue #642:
URL: https://github.com/apache/apisix-helm-chart/issues/642#issuecomment-2049551687
Any news on this issue?
--
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
Re: [I] Unable to install and enable plugins from helm chart [apisix-helm-chart]
Posted by "papdaniel (via GitHub)" <gi...@apache.org>.
papdaniel commented on issue #642:
URL: https://github.com/apache/apisix-helm-chart/issues/642#issuecomment-2812749299
I had the same issue, I think we all misunderstood the config. It just enables the plugin (in my case prometheus - which is enabled by default, so don't need to enable), but does not create a global rule. To create a global rule I use ApisixGlobalRule resource, and it works:
```
apiVersion: apisix.apache.org/v2
kind: ApisixGlobalRule
metadata:
name: prometheus
spec:
plugins:
- name: prometheus
enable: true
config:
prefer_name: true
```
--
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
Re: [I] Unable to install and enable plugins from helm chart [apisix-helm-chart]
Posted by "ventaubain (via GitHub)" <gi...@apache.org>.
ventaubain commented on issue #642:
URL: https://github.com/apache/apisix-helm-chart/issues/642#issuecomment-1780986203
I have the same problem. I have to use the admin API to enable complete prometheus metrics logs (bandwith and HTTP).
Via helm (no work):
```
plugins:
- prometheus
prometheus:
enabled: true
metrics:
http_status:
extra_labels:
- upstream_addr: $upstream_addr
- status: $upstream_status # The label name does not need to be the same as the variable name.
http_latency:
extra_labels:
- upstream_addr: $upstream_addr
bandwidth:
extra_labels:
- upstream_addr: $upstream_addr
default_buckets:
- 10
- 50
- 100
- 200
- 500
pluginAttrs:
prometheus:
enable_export_server: false
```
Via API (work):
```
curl http://127.0.0.1:9180/apisix/admin/global_rules -H 'X-API-KEY: <YOUR_TOKEN>' -i -X PUT -d '
{
"id": "rule-for-metrics",
"plugins": {
"prometheus": {
"disable": false
}
}
}'
```
--
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
Re: [I] Unable to install and enable plugins from helm chart [apisix-helm-chart]
Posted by "pablokbs (via GitHub)" <gi...@apache.org>.
pablokbs commented on issue #642:
URL: https://github.com/apache/apisix-helm-chart/issues/642#issuecomment-2455409143
I've tested this with the latest version of the chart.
So it's not possible to enable plugins with the helm chart? It requires manual intervention?
--
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
Re: [I] Unable to install and enable plugins from helm chart [apisix-helm-chart]
Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop closed issue #642: Unable to install and enable plugins from helm chart
URL: https://github.com/apache/apisix-helm-chart/issues/642
--
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