kubegres
Kubegres is a Kubernetes operator allowing to deploy one or many clusters of PostgreSql instances and manage databases replication, failover and backup.
파일 탐색기
최종 버전 다운로드 (.zip)- groupversion_info.go
- kubegres_types.go
- zz_generated.deepcopy.go
- WriteYamlTemplatesInGoFile.go
- main.go
- kubegres.reactive-tech.io_kubegres.yaml
- kustomization.yaml
- kustomizeconfig.yaml
- kustomization.yaml
- manager_metrics_patch.yaml
- metrics_service.yaml
- backup-pvc.yaml
- configMap.yaml
- kubegres.yaml
- kustomization.yaml
- namespace.yaml
- secret.yaml
- backup-pvc.yaml
- configMap.yaml
- kubegres.yaml
- kustomization.yaml
- secret.yaml
- kustomization.yaml
- manager.yaml
- allow-metrics-traffic.yaml
- kustomization.yaml
- kustomization.yaml
- monitor.yaml
- kubegres_editor_role.yaml
- kubegres_viewer_role.yaml
- kustomization.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
- metrics_auth_role.yaml
- metrics_auth_role_binding.yaml
- metrics_reader_role.yaml
- role.yaml
- role_binding.yaml
- service_account.yaml
- kubegres_v1_kubegres.yaml
- kustomization.yaml
- boilerplate.go.txt
- InterfaceArrayUtil.go
- LogWrapper.go
- ResourcesContext.go
- KubegresStatusWrapper.go
- CreateOwnerKeyIndexation.go
- KubegresContext.go
- BlockingOperationLogger.go
- BlockingOperation.go
- BlockingOperationConfig.go
- BlockingOperationError.go
- SpecChecker.go
- DefaultStorageClass.go
- UndefinedSpecValuesChecker.go
- PodSpecComparator.go
- PrimaryToReplicaFailOver.go
- PrimaryDbCountSpecEnforcer.go
- ReplicaDbCountSpecEnforcer.go
- BackUpCronJobCountSpecEnforcer.go
- BaseConfigMapCountSpecEnforcer.go
- ResourcesCountSpecEnforcer.go
- ServicesCountSpecEnforcer.go
- StatefulSetCountSpecEnforcer.go
- AffinitySpecEnforcer.go
- AllStatefulSetsSpecEnforcer.go
- ContainerSecurityContextSpecEnforcer.go
- CustomConfigSpecEnforcer.go
- ImageSpecEnforcer.go
- LivenessProbeSpecEnforcer.go
- PortSpecEnforcer.go
- ReadinessProbeSpecEnforcer.go
- ResourcesSpecEnforcer.go
- SecurityContextSpecEnforcer.go
- ServiceAccountNameSpecEnforcer.go
- StatefulSetSpecDifferences.go
- StatefulSetsSpecEnforcer.go
- StorageClassSizeSpecEnforcer.go
- TolerationsSpecEnforcer.go
- VolumeSpecEnforcer.go
- BackUpCronJobTemplate.yaml
- BaseConfigMapTemplate.yaml
- PrimaryServiceTemplate.yaml
- PrimaryStatefulSetTemplate.yaml
- ReplicaServiceTemplate.yaml
- ReplicaStatefulSetTemplate.yaml
- Templates.go
- CustomConfigSpecHelper.go
- ResourcesCreatorFromTemplate.go
- ResourceTemplateLoader.go
- ResourcesStatesLogger.go
- PodsStates.go
- StatefulSetsStates.go
- StatefulSetWrapper.go
- StatefulSetWrappersSorting.go
- BackUpStates.go
- ConfigStates.go
- DbStorageClassStates.go
- ResourcesStates.go
- ServicesStates.go
- kubegres_controller.go
- configMap_empty.yaml
- configMap_with_all_configs.yaml
- configMap_with_backup_database_script.yaml
- configMap_with_pg_hba_conf.yaml
- configMap_with_postgres_conf.yaml
- configMap_with_postgres_conf_and_wal_level_to_logical.yaml
- configMap_with_primary_init_script.yaml
- backupPvc.yaml
- ConfigForTest.go
- kubegres.yaml
- LoadTestYaml.go
- primaryService.yaml
- replicaService.yaml
- secret.yaml
- serviceAccount.yaml
- createCluster.sh
- kind-cluster-config.yaml
- KindTestClusterUtil.go
- DbQueryTestCases.go
- DbConnectionTestUtil.go
- MockEventRecorderTestUtil.go
- MockLogger.go
- TestResourceCreator.go
- TestResourceModifier.go
- TestResourceRetriever.go
- custom_annotation_test.go
- custom_namespace_test.go
- data_is_replicated_test.go
- many_diff_kubegres_instances_test.go
- postgres_conf_wal_level_logical_test.go
- primary_failure_and_recovery_test.go
- replica_failure_and_recovery_test.go
- spec_affinity_test.go
- spec_backup_test.go
- spec_containerSecurityContext_test.go
- spec_customConfig_test.go
- spec_databaseSize_test.go
- spec_databaseStorageClassName_test.go
- spec_databaseVolumeMount_test.go
- spec_envVariables_test.go
- spec_failover_is_disabled_test.go
- spec_image_test.go
- spec_livenessProbe_test.go
- spec_pod_manually_promoted_test.go
- spec_port_test.go
- spec_readinessProbe_test.go
- spec_replica_test.go
- spec_resource_test.go
- spec_securityContext_test.go
- spec_serviceAccountName_test.go
- spec_tolerations_test.go
- spec_volumeAndVolumeMount_test.go
- spec_volumeClaimTemplates_test.go
- suite_test.go
- .dockerignore
- .gitignore
- .golangci.yml
- Backlog
- Dockerfile
- go.mod
- go.sum
- kubegres.yaml
- LICENCE
- Makefile
- PROJECT
- README.md
- Upgrade-Kubebuilder
🚀 설치 가이드
1. 코드 내려받기
git clone https://github.com/reactive-tech/kubegres
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd kubegres
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker build -t kubegres .
Dockerfile을 기반으로 실행 가능한 이미지를 빌드합니다.
docker run -p 8080:80 kubegres
빌드된 이미지를 실제 컨테이너로 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
3. Go
보통go build ./...
Go 프로그램을 컴파일해 실행 파일을 만듭니다.
go run .
따로 빌드하지 않고 바로 Go 프로그램을 실행합니다.
빌드가 에러 없이 끝나면 성공입니다. go run . 을 썼다면 터미널 출력을 확인하세요.
4. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
