{"id":24344344,"url":"https://github.com/aiven/aiven-operator","last_synced_at":"2026-04-09T17:15:46.583Z","repository":{"id":37429158,"uuid":"244860883","full_name":"aiven/aiven-operator","owner":"aiven","description":"Provision and manage Aiven Services from your Kubernetes cluster.","archived":false,"fork":false,"pushed_at":"2025-04-07T08:06:59.000Z","size":13949,"stargazers_count":33,"open_issues_count":16,"forks_count":20,"subscribers_count":63,"default_branch":"main","last_synced_at":"2025-04-09T17:15:05.369Z","etag":null,"topics":["automation","data","databases","kubernetes","operator"],"latest_commit_sha":null,"homepage":"https://aiven.github.io/aiven-operator","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aiven.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-04T09:38:08.000Z","updated_at":"2025-04-03T16:09:37.000Z","dependencies_parsed_at":"2022-07-20T12:17:34.340Z","dependency_job_id":"56c988b5-471e-4220-a8cd-d8f693577734","html_url":"https://github.com/aiven/aiven-operator","commit_stats":null,"previous_names":["aiven-open/aiven-operator"],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiven%2Faiven-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiven%2Faiven-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiven%2Faiven-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiven%2Faiven-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aiven","download_url":"https://codeload.github.com/aiven/aiven-operator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248074922,"owners_count":21043490,"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":["automation","data","databases","kubernetes","operator"],"created_at":"2025-01-18T09:33:53.761Z","updated_at":"2026-04-09T17:15:46.575Z","avatar_url":"https://github.com/aiven.png","language":"Go","readme":"# Aiven Operator\n\nProvision and manage [Aiven Services](https://aiven.io/) from your Kubernetes cluster.\n\nSee the [full documentation](https://aiven.github.io/aiven-operator/).\n\n## Installation\n\nTo install the Operator, please follow the [installation instructions](https://aiven.github.io/aiven-operator/installation/helm.html).\n\n## Deploying PostgreSQL at Aiven\n\nNow let's create a `PostgreSQL` resource with the following YAML – please fill in your project name under in the `project` field:\n\n```yaml\napiVersion: aiven.io/v1alpha1\nkind: PostgreSQL\nmetadata:\n  name: aiven-pg\nspec:\n  # reads the authentication token\n  authSecretRef:\n    name: aiven-token\n    key: token\n\n  # stores the PostgreSQL connection information on the specified Secret\n  connInfoSecretTarget:\n    name: pg-connection\n\n  project: PROJECT_NAME\n  cloudName: google-europe-west1\n  plan: hobbyist\n  maintenanceWindowDow: friday\n  maintenanceWindowTime: 23:00:00\n  userConfig:\n    pg_version: \"15\"\n```\n\nWatch the resource being created and wait until its status is `RUNNING`:\n\n```bash\nwatch kubectl get postgresql.aiven.io aiven-pg\n```\n\nAfter created, the Operator will create a Kubernetes Secret containing the PostgreSQL connection information:\n\n```bash\nkubectl describe secret pg-connection\n```\n\nUse the following [jq](https://github.com/jqlang/jq) command to decode the Secret:\n\n```bash\nkubectl get secret pg-connection -o json | jq '.data | map_values(@base64d)'\n```\n\n## Connecting to PostgreSQL\n\nLet's run a `psql` command to test the database connection using the generated Secret:\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata:\n  name: psql-test-connection\nspec:\n  restartPolicy: Never\n  containers:\n    - image: postgres:11\n      name: postgres\n      command: [\"psql\", \"$(DATABASE_URI)\", \"-c\", \"SELECT version();\"]\n      envFrom:\n        - secretRef:\n            name: pg-connection\n```\n\nThe Pod should the PostgreSQL version. You can verify with the following command:\n\n```bash\n$ kubectl logs psql-test-connection\n                                           version\n---------------------------------------------------------------------------------------------\n PostgreSQL 11.12 on x86_64-pc-linux-gnu, compiled by gcc, a 68c5366192 p 6b9244f01a, 64-bit\n(1 row)\n```\n\n## Contributing\n\nWe welcome and encourage contributions to this project. Please take a look at our [Contribution guide line](https://aiven.github.io/aiven-operator/contributing/index.html).\n\n## License\n\n[Apache 2](LICENSE).\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiven%2Faiven-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiven%2Faiven-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiven%2Faiven-operator/lists"}