mirror of
https://github.com/openvk/openvk
synced 2024-11-16 03:59:19 +03:00
Alexander Minkin
6632d070f5
Let the docker handle logs. https://12factor.net/logs motivated me to do this |
||
---|---|---|
.. | ||
manifests | ||
README.md |
Kubernetes deployment
- Open
manifests/001-configmap.yaml
in your favorite editor, pointwebsiteUrl
to your domain name, then generate uniquesecret
value forchandler.yml
section. - Open
manifests/002-pvc.yaml
in your favorite editor and set necessaryannotations
for your storage class. Depending on your Kubernetes version, you may also need to setstorageClassName
inspec
section. - Open
manifests/005-ingress.yaml
in your favorite editor and set necessaryannotations
for your ingress controller, then pointhost
to your domain name. Depending on your Kubernetes version, you may also need to setingressClassName
inspec
section. - (optional) if you don't want to use ingress (e.g. when testing locally w/
minikube
), you can openmanifests/004-svc.yaml
and settype: LoadBalancer
foropenvk-svc
and other services. - (optional) if you don't need adminer or phpmyadmin, you can open
manifests/003-deployment.yaml
and setreplicas: 0
foradminer
andphpmyadmin
deployments.
Apply order
Namespace:
kubectl apply -f manifests/000-ns.yaml
Configmap:
kubectl apply -f manifests/001-configmap.yaml
PVCs:
kubectl apply -f manifests/002-pvc.yaml
Deployments:
kubectl apply -f manifests/003-deployment.yaml
Services:
kubectl apply -f manifests/004-svc.yaml
Ingress:
kubectl apply -f manifests/005-ingress.yaml
Kafka (optional, enable in configmap first):
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm install kafka bitnami/kafka -n openvk -f manifests/006-kafka-values.yaml