Simple profile and statistics back-end.
Pre-requisite:
Before starting the deployment, ingress controller should be updated with:
containers:
- args:
- /nginx-ingress-controller
- --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
And create the relative configmap:
apiVersion: v1
data:
"3306": snap-report/mysql-service:3306
kind: ConfigMap
metadata:
name: tcp-services
namespace: nginx
- Create the namespace
kubectl create namespace snap-report
- Create the secret based on
manifests/external-secret
and usage of ExternalSecret is optional. - Create the configmap
kubectl create configmap app-configs --from-env-file=assets/config -n snap-report
- Create other resources:
kubectl apply -f manifests/mysql-configmap.yaml -n snap-report
kubectl apply -f manifests/mysql-pvc.yaml -n snap-report
kubectl apply -f manifests/mysql-service.yaml -n snap-report
kubectl apply -f manifests/mysql-deployment.yaml -n snap-report
kubectl apply -f manifests/mysql-ingress.yaml -n snap-report
kubectl apply -f manifests/service.yaml -n snap-report
kubectl apply -f manifests/app-deployment.yaml -n snap-report