93 lines
1.5 KiB
Plaintext
93 lines
1.5 KiB
Plaintext
:toc: right
|
|
= Matomo
|
|
|
|
https://hub.docker.com/_/matomo/[Official docker image].
|
|
|
|
Steps:
|
|
|
|
. create Ingress object
|
|
|
|
|
|
== Ingress
|
|
[source, yaml]
|
|
----
|
|
include::../.././../k8s/ingress-matomo.yaml[]
|
|
----
|
|
|
|
kubectl describe ingress ingress-matomo -n playground
|
|
|
|
kubectl describe ingress -n playground
|
|
|
|
kubectl describe ingress ingress-resource-backend -n playground
|
|
|
|
=== Error
|
|
|
|
|
|
docker run --name=some-mysql -e MYSQL_ROOT_PASSWORD=admin123 -d mysql
|
|
|
|
docker run --name myadmin -d --link testsql:db -p 8080:80 phpmyadmin/phpmyadmin
|
|
|
|
docker run --name myadmin -d --link dockermysqlrabbitmq_mysql:db -p 8080:80 phpmyadmin/phpmyadmin
|
|
|
|
docker run -d --link dockermysqlrabbitmq_mysql_1:db -v matomo:/var/www/html -p 8080:80 matomo
|
|
|
|
|
|
docker exec -ti dockermysqlrabbitmq_mysql_1 bash
|
|
|
|
docker-compose up --build
|
|
|
|
|
|
|
|
== Backend or Service
|
|
[source,yaml]
|
|
----
|
|
include::../.././../k8s/backend-matomo.yaml[]
|
|
----
|
|
|
|
https://kubernetes.io/docs/concepts/services-networking/ingress/#resource-backend[Resource backends documentation]
|
|
|
|
== Deployment
|
|
|
|
[source,yaml]
|
|
----
|
|
include::../.././../k8s/deployment-matomo.yaml[]
|
|
----
|
|
|
|
Logging UI https://playground.k-space.ee[address]
|
|
|
|
|
|
== Useful commands
|
|
|
|
kubectl delete ingress matomo-ingress
|
|
|
|
kubectl get ep -n playground
|
|
|
|
kubectl config use-context default
|
|
|
|
kubectl config get-contexts
|
|
|
|
journalctl -u kubelet
|
|
|
|
journalctl -f
|
|
|
|
ip route list
|
|
|
|
|
|
kubectl apply -f k8s/ -n playground
|
|
|
|
alias k="kubectl -n sb-4m3khtc9b8"
|
|
|
|
|
|
|
|
== Secret
|
|
|
|
[source,bash]
|
|
----
|
|
cat <<EOF >./kustomization.yaml
|
|
secretGenerator:
|
|
- name: mysql-pass
|
|
literals:
|
|
- password=helloworld
|
|
EOF
|
|
----
|