Skip to content
Snippets Groups Projects
Commit 507b8ec5 authored by Andrei PETREA's avatar Andrei PETREA
Browse files

Merge branch 'add-portainer-config' into 'main'

Add k8s config for Portainer

See merge request !4
parents b4e4a910 50ecc9ce
No related branches found
No related tags found
1 merge request!4Add k8s config for Portainer
......@@ -20,6 +20,16 @@ minikube addons enable ingress
kubectl apply -f prerequisites/
kubectl apply -f kong/
# Install Kong ingress controller
helm repo add kong https://charts.konghq.com
helm repo update
helm install kong kong/ingress -n kong --create-namespace
# Install Portainer
helm repo add portainer https://portainer.github.io/k8s/
helm repo update
helm upgrade --install portainer portainer/portainer --set image.tag=lts
minikube tunnel # this will require root privileges and will block the terminal
```
......@@ -31,4 +41,4 @@ echo $PROXY_IP
```
Now you can access the public services using the IP address of the Kong Proxy,
e.g. `curl "$PROXY_IP"`.
e.g. `curl "$PROXY_IP"`, `"$PROXY_IP"/portainer` etc.
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: portainer
annotations:
konghq.com/strip-path: 'true'
spec:
parentRefs:
- name: kong
rules:
- matches:
- path:
type: PathPrefix
value: /portainer
backendRefs:
- name: portainer
kind: Service
port: 9000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment