feat: add kro Capability, EKS API IP restriction, ALB inbound CIDR setup#1
Open
MatsuokaYuji wants to merge 4 commits intomainfrom
Open
feat: add kro Capability, EKS API IP restriction, ALB inbound CIDR setup#1MatsuokaYuji wants to merge 4 commits intomainfrom
MatsuokaYuji wants to merge 4 commits intomainfrom
Conversation
- Add WebApp ResourceGraphDefinition (Rollout + Service×2 + Ingress×2) - Add ArgoCD ApplicationSet for kro-definitions - Replace Kustomize base manifests with kro WebApp Instance - webapp-instance.yaml is gitignored (contains real IPs) - .example file provided with placeholders
- bg-demo-kro/: kro WebApp Instance (1 file) - bg-demo-traditional/: Kustomize with raw manifests (Rollout, Service, Ingress)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
EKS Capabilities の kro (Kubernetes Resource Orchestrator) を導入し、Developer の認知負荷を削減するワークロード抽象化を実現しました。
従来の Kustomize 版も比較用に残しており、スクリプトで切り替えてデプロイできます。
変更内容
Terraform(インフラ)
aws_eks_capabilitytype=KRO + ClusterAdminPolicy)public_access_cidrs)!= nullに統一)Platform リポジトリ(GitOps)
config/kro-definitions/webapp-rgd.yaml: WebApp ResourceGraphDefinitioningressCidrsフィールドで ALB の IP 制限を Instance 側から指定可能bootstrap/config-kro-definitions.yaml: ArgoCD ApplicationSetWorkload リポジトリ
bg-demo-kro/: kro 版(Developer は webapp-instance.yaml の1ファイルだけ書けばよい)bg-demo-traditional/: 従来の Kustomize 版(比較用に残置)スクリプト・ドキュメント
scripts/push-workload.sh [kro|traditional]: workload を CodeCommit に push(方式を引数で切り替え)scripts/push-platform.sh: platform リポジトリを CodeCommit に pushrepositories/workloads/README.md: 使い分け方・セットアップ手順・比較表デプロイ方式の切り替え
ArgoCD が CodeCommit 上の
ex-app/bg-demo/devを検出して自動 Sync します。スクリプトは選択した方式のファイルを
ex-app/bg-demo/として CodeCommit に push します。セキュリティ
terraform.tfvars,webapp-instance.yaml,ingress-cidrs.yaml)は.gitignoreで除外.exampleファイルにプレースホルダーを記載Developer 体験の変化