k8 by example -- straight to the point, simple execution. `` Deploy and zabbix will be up and running at http://zabbix.default.svc.cluster.local.
Still proxy'ing to get access to your cluster?! Take a poke at https://github.com/mateothegreat/k8-byexamples-openvpn, secure? dns? lan access? wat?
$ make install DB_SERVER_HOST=changeme MYSQL_USER=changeme MYSQL_PASSWORD=changeme
[ INSTALLING MANIFESTS/WEB-DEPLOYMENT.YAML ]: deployment "zabbix-web" configured
[ INSTALLING MANIFESTS/SERVER-DEPLOYMENT.YAML ]: deployment "zabbix-server" configured
[ INSTALLING MANIFESTS/WEB-SERVICE.YAML ]: service "zabbix-web" configured
[ INSTALLING MANIFESTS/SERVER-SERVICE.YAML ]: service "zabbix-server" configured
$ make help
Usage: make <target(s)>
Targets:
dump/submodules Output list of submodules & repositories
install Installs manifests to kubernetes using kubectl apply (make manifests to see what will be installed)
delete Deletes manifests to kubernetes using kubectl delete (make manifests to see what will be installed)
get Retrieves manifests to kubernetes using kubectl get (make manifests to see what will be installed)
get/all Retrives all resources (in color!)
describe Describes manifests to kubernetes using kubectl describe (make manifests to see what will be installed)
context Globally set the current-context (default namespace)
shell Grab a shell in a running container
dump/logs Find first pod and follow log output
dump/manifests Output manifests detected (used with make install, delete, get, describe, etc)
Tools:
get/myip Get your external ip
testing-curl Try to curl http & https from $(HOST)
testing/curlhttp Try to curl http://$(HOST)
testing/curlhttps Try to curl https://$(HOST)
testing/getip Retrieve external IP from api.ipify.org
git/update Update submodule(s) to HEAD from origin
git/up Update all .make submodules
rbac/grant-google Create clusterrolebinding for cluster-admin
$ make delete
[ DELETING MANIFESTS/DASHBOARDS-CONFIGMAP.YAML ]: configmap "grafana-import-dashboards" deleted
[ DELETING MANIFESTS/DASHBOARDS-JOB.YAML ]: job "grafana-import-dashboards" deleted
[ DELETING MANIFESTS/DEPLOYMENT.YAML ]: deployment "grafana-core" deleted
[ DELETING MANIFESTS/INGRESS.YAML ]: No resources found
[ DELETING MANIFESTS/PERSISTENTVOLUMECLAIM.YAML ]: persistentvolumeclaim "grafana-persistent-storage" deleted
[ DELETING MANIFESTS/SERVICE.YAML ]: service "grafana" deleted