Deploying a microservice app (based on weather api) as part of learning k8s
kind version 0.24.0
kubernetes v1.31.0
containerd v1.7.18
kubectl create namespace weather-app
A user named 'auth' will be created for interacting with weather-app database.
kubectl create secret generic mysql-secret \
--from-literal=root-password='<root-pw>' \
--from-literal=auth-password='<password-for-auth-user>' \
--from-literal=secret-key='<secret-for-jwt>' \
-n weather-app
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.crt -subj "/CN=weatherapp.local/O=weatherapp"
kubectl create secret tls weatherapp-ui-tls --cert=tls.crt --key=tls.key
kubectl apply -f k8s/auth/mysql
kubectl apply -f k8s/auth
Modify secret.yaml to add your RAPIDAPI KEY
kubectl apply -f k8s/weather
kubectl apply -f k8s/ui