This commit is contained in:
alessandro
2026-07-17 09:42:52 +02:00
commit 20d506407a
93 changed files with 14526 additions and 0 deletions

76
add-on/influxdb.txt Normal file
View File

@@ -0,0 +1,76 @@
helm repo add influxdata https://helm.influxdata.com/
helm repo update
----
kubectl create namespace influxdb
----
influxdb-values.yaml:
image:
repository: influxdb
tag: 2.7
persistence:
enabled: true
size: 20Gi
resources:
requests:
cpu: 200m
memory: 256Mi
limits:
cpu: 1
memory: 1Gi
service:
type: ClusterIP
port: 8086
adminUser:
organization: sts-lab
bucket: demo-bucket
user: admin
password: KAYQE1QA7uwUZ8uI5
token: my-super-token
----
helm install influxdb influxdata/influxdb2 --namespace influxdb -f influxdb-values.yaml
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: influxdb
spec:
hostnames:
- poc2.italiadatacenter.com
parentRefs:
- name: main-gateway
namespace: nginx-gateway
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: influxdb-influxdb2
port: 8086
****************** TEST ****************************
echo $(kubectl get secret influxdb-influxdb2-auth -o "jsonpath={.data['admin-password']}" --namespace influxdb | base64 --decode)
logon UI
http://localhost:8086
user: admin
password: KAYQE1QA7uwUZ8uI5
TEST API:
curl http://localhost:8086/health
link svc:
influxdb-influxdb2.influxdb.svc.cluster.local