This repository contains Kubernetes deployment configurations for deploying microservices using both plain YAML files and Helm charts.
-
Apply the YAML files:
kubectl apply -f deployments/microservice1.yaml kubectl apply -f deployments/microservice2.yaml
-
Install Helm if you haven't already:
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -
Deploy the Helm chart:
helm install myrelease helm/mychart
You can customize the Helm chart by editing the values.yaml file in helm/mychart/.
For example, to change the image or replica count for a microservice, modify the corresponding values in values.yaml:
microservices:
- name: microservice1
image: your-docker-registry/microservice1:latest
replicas: 3
port: 80
- name: microservice2
image: your-docker-registry/microservice2:latest
replicas: 3
port: 80