KEMBAR78
Config Kubernetes | PDF
0% found this document useful (0 votes)
14 views1 page

Config Kubernetes

The document outlines the steps to start a Minikube environment and build Docker images for various services including API gateway, authentication, user, tour, booking, payment, and notification services. It also details the creation of Kubernetes config maps from environment files and the application of deployment configurations for PostgreSQL, Redis, and the various services. Finally, it includes commands to load the built images into Minikube and apply the necessary Kubernetes configurations.

Uploaded by

Ngọc Sơn Vũ
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Config Kubernetes

The document outlines the steps to start a Minikube environment and build Docker images for various services including API gateway, authentication, user, tour, booking, payment, and notification services. It also details the creation of Kubernetes config maps from environment files and the application of deployment configurations for PostgreSQL, Redis, and the various services. Finally, it includes commands to load the built images into Minikube and apply the necessary Kubernetes configurations.

Uploaded by

Ngọc Sơn Vũ
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

minikube start

minikube docker-env
& minikube -p minikube docker-env --shell powershell | Invoke-Expression

docker build -t api-gateway:latest ./api-gate-way/OcelotGateway


docker build -t auth-service:latest ./auth-service
docker build -t user-service:latest ./user-service
docker build -t tour-service:latest ./tour-service
docker build -t booking-service:latest ./booking-service
docker build -t payment-service:latest ./payment-service
docker build -t notification-service:latest ./notification-service
docker build -t nginx:latest ./nginx

kubectl create configmap auth-service-config --from-env-file=./auth-service/.env


kubectl create configmap user-service-config --from-env-file=./user-service/.env
kubectl create configmap tour-service-config
--from-env-file=./tour-service/cmd/.env
kubectl create configmap booking-service-config
--from-env-file=./booking-service/cmd/.env
kubectl create configmap notification-service-config
--from-env-file=./notification-service/cmd/.env

minikube image load api-gateway:latest


minikube image load auth-service:latest
minikube image load user-service:latest
minikube image load tour-service:latest
minikube image load booking-service:latest
minikube image load payment-service:latest
minikube image load notification-service:latest

kubectl apply -f postgres-deployment.yaml


kubectl apply -f redis-deployment.yaml
kubectl apply -f api-gateway.yaml
kubectl apply -f auth-service.yaml
kubectl apply -f user-service.yaml
kubectl apply -f tour-service.yaml
kubectl apply -f booking-service.yaml
kubectl apply -f payment-service.yaml
kubectl apply -f notification-service.yaml
kubectl apply -f nginx-deployment.yaml

You might also like