{"id":16928841,"url":"https://github.com/hasheddan/cross-cluster","last_synced_at":"2025-03-21T02:43:32.367Z","repository":{"id":104323120,"uuid":"331133940","full_name":"hasheddan/cross-cluster","owner":"hasheddan","description":"Deploy an application across multiple @kubernetes clusters using @crossplane","archived":false,"fork":false,"pushed_at":"2021-01-19T23:11:30.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-25T23:30:03.860Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hasheddan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-19T23:08:56.000Z","updated_at":"2021-01-19T23:11:33.000Z","dependencies_parsed_at":"2023-05-04T09:41:33.713Z","dependency_job_id":null,"html_url":"https://github.com/hasheddan/cross-cluster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasheddan%2Fcross-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasheddan%2Fcross-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasheddan%2Fcross-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasheddan%2Fcross-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasheddan","download_url":"https://codeload.github.com/hasheddan/cross-cluster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244728195,"owners_count":20500023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T20:37:46.529Z","updated_at":"2025-03-21T02:43:32.344Z","avatar_url":"https://github.com/hasheddan.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cross-Cluster\n\nUsing Crossplane to deploy an application across regions.\n\n## Building\n\n1. Build and push `cross-cluster` Configuration\n\n```\nkubectl crossplane build configuration\nkubectl crossplane push configuration hasheddan/cross-cluster:v0.0.1\n```\n\n## Deploying\n\n1. Install Crossplane\n\n```\nkubectl create namespace crossplane-system\n\nhelm repo add crossplane-stable https://charts.crossplane.io/stable\nhelm repo update\n\nhelm install crossplane --namespace crossplane-system crossplane-stable/crossplane\n```\n\n2. Install `cross-cluster` Configuration\n\n```\nkubectl crossplane install configuration hasheddan/cross-cluster:v0.0.1\n```\n\n3. Setup GCP Provider Credentials\n\n```\nkubectl create secret generic gcp-creds -n crossplane-system --from-file=key=./gcp-creds.json\nPROJECT_ID=crossplane-playground envsubst \u003c ./gcp-provider-config.yaml | kubectl apply -f -\n```\n\n4. Create east and west clusters\n\n```\nkubectl apply -f examples/cluster-east.yaml\nkubectl apply -f examples/cluster-west.yaml\n```\n\n5. Create east and west apps\n\n```\nkubectl apply -f examples/app-east.yaml\nkubectl apply -f examples/app-west.yaml\n```\n\n7. Get kubeconfigs\n\n```\nkubectl get secret kubeconfig-east -n crossplane-system -o=jsonpath={.data.kubeconfig} | base64 --decode \u003e east.kube\nkubectl get secret kubeconfig-west -n crossplane-system -o=jsonpath={.data.kubeconfig} | base64 --decode \u003e west.kube\n```\n\n8. View apps\n\n```\nkubectl port-forward new-doc-7cb5656cfd-gdh2x 8081:5000 --kubeconfig=east.kube\nkubectl port-forward new-doc-549ccd5d78-vbthd 8082:5000 --kubeconfig=west.kube\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasheddan%2Fcross-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasheddan%2Fcross-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasheddan%2Fcross-cluster/lists"}