Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avinashupadhya99/production-manifests
Kubernetes manifests for production component
https://github.com/avinashupadhya99/production-manifests
Last synced: 5 days ago
JSON representation
Kubernetes manifests for production component
- Host: GitHub
- URL: https://github.com/avinashupadhya99/production-manifests
- Owner: avinashupadhya99
- Created: 2022-04-23T18:56:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-25T11:21:03.000Z (over 2 years ago)
- Last Synced: 2025-01-10T08:47:44.737Z (10 days ago)
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Manifests for deploying `manufacturing` application on EKS
```bash
eksctl create cluster -f eks-cluster-config.yaml
``````bash
alias k=kubectl
```### Datadog
```bash
k apply -f datadog-secret.yaml
k apply -f datadog-rbac.yaml
``````bash
k apply -f database-secret.yaml
k apply -f produce-service/deployment.yaml
k apply -f produce-service/service.yaml
k apply -f package-service/deployment.yaml
k apply -f package-service/service.yaml
```https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html
```bash
aws eks describe-cluster --name manufacturing-cluster --query "cluster.identity.oidc.issuer" --output text
``````bash
aws iam list-open-id-connect-providers | grep XXXXXXXXXXXXXXXXXXXXX
``````bash
eksctl utils associate-iam-oidc-provider --cluster manufacturing-cluster --approve
``````bash
aws iam create-policy \
--policy-name AWSLoadBalancerControllerIAMPolicy \
--policy-document file://iam_policy.json
``````bash
eksctl create iamserviceaccount \
--cluster=manufacturing-cluster \
--namespace=kube-system \
--name=aws-load-balancer-controller \
--role-name "AmazonEKSmanufacturingLoadBalancerControllerRole" \
--attach-policy-arn=arn:aws:iam::$ACCOUNT_ID:policy/AWSLoadBalancerControllerIAMPolicy \
--approve
``````bash
helm install aws-load-balancer-controller eks/aws-load-balancer-controller \
-n kube-system \
--set clusterName=manufacturing-cluster \
--set serviceAccount.create=false \
--set serviceAccount.name=aws-load-balancer-controller \
--set image.repository=602401143452.dkr.ecr.ap-south-1.amazonaws.com/amazon/aws-load-balancer-controller \
--set region=ap-south-1 \
--set vpcId=$VPC_ID
```https://aws.amazon.com/premiumsupport/knowledge-center/eks-set-up-externaldns/
```bash
aws iam create-policy \
--policy-name Route53ExternalDNSIAMPolicy \
--policy-document file://route53_iam_policy.json
``````bash
eksctl create iamserviceaccount \
--name external-dns \
--namespace kube-system \
--cluster manufacturing-cluster \
--attach-policy-arn arn:aws:iam::$ACCOUNT_ID:policy/Route53ExternalDNSIAMPolicy \
--approve
``````bash
k apply -f external-dns.yaml
``````bash
k apply -f ingress.yaml
```### Logging
https://aws.amazon.com/blogs/containers/fluent-bit-for-amazon-eks-on-aws-fargate-is-here/
```bash
k apply -f fluentbit-config.yaml
``````bash
aws iam create-policy \
--policy-name FluentBitEKSFargate \
--policy-document file://permissions.json
``````
aws iam attach-role-policy \
--policy-arn arn:aws:iam::$ACCOUNT_ID:policy/FluentBitEKSFargate \
--role-name AmazonEKSFargatePodExecutionRole
```