# cdk8s-redis
> Redis constructs for cdk8s
Basic implementation of a Redis construct for cdk8s. Contributions are welcome!
## Usage
The following will define a Redis cluster with a primary and 2 replicas:
```python
import { Redis } from 'cdk8s-redis';
// inside your chart:
const redis = new Redis(this, 'my-redis');
```
DNS names can be obtained from `redis.primaryHost` and `redis.replicaHost`.
You can specify how many replicas to define:
```python
new Redis(this, 'my-redis', {
replicas: 4
});
```
Or, you can specify no replicas:
```python
new Redis(this, 'my-redis', {
replicas: 0
});
```
## License
Distributed under the [Apache 2.0](./LICENSE) license.
Raw data
{
"_id": null,
"home_page": "https://github.com/cdk8s-team/cdk8s-redis.git",
"name": "cdk8s-redis",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Amazon Web Services",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/7c/33/f9f3e706d3a2f744abcab56742179e8710b3e01d83301a74367becb50707/cdk8s_redis-0.1.800.tar.gz",
"platform": null,
"description": "# cdk8s-redis\n\n> Redis constructs for cdk8s\n\nBasic implementation of a Redis construct for cdk8s. Contributions are welcome!\n\n## Usage\n\nThe following will define a Redis cluster with a primary and 2 replicas:\n\n```python\nimport { Redis } from 'cdk8s-redis';\n\n// inside your chart:\nconst redis = new Redis(this, 'my-redis');\n```\n\nDNS names can be obtained from `redis.primaryHost` and `redis.replicaHost`.\n\nYou can specify how many replicas to define:\n\n```python\nnew Redis(this, 'my-redis', {\n replicas: 4\n});\n```\n\nOr, you can specify no replicas:\n\n```python\nnew Redis(this, 'my-redis', {\n replicas: 0\n});\n```\n\n## License\n\nDistributed under the [Apache 2.0](./LICENSE) license.\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Basic implementation of a Redis construct for cdk8s.",
"version": "0.1.800",
"project_urls": {
"Homepage": "https://github.com/cdk8s-team/cdk8s-redis.git",
"Source": "https://github.com/cdk8s-team/cdk8s-redis.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "63e8281e4b6a433a1c6274895f008908f91948618a0315f28503b2fe39dd7e57",
"md5": "a13fc520079d53e94d6e18e2a29c423a",
"sha256": "5051330dcd4bb1270bb9a4d190bc2bebfe8cbc7ee964fe3bb95e96bfc6ff6c51"
},
"downloads": -1,
"filename": "cdk8s_redis-0.1.800-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a13fc520079d53e94d6e18e2a29c423a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 258830,
"upload_time": "2024-12-24T12:16:50",
"upload_time_iso_8601": "2024-12-24T12:16:50.775708Z",
"url": "https://files.pythonhosted.org/packages/63/e8/281e4b6a433a1c6274895f008908f91948618a0315f28503b2fe39dd7e57/cdk8s_redis-0.1.800-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7c33f9f3e706d3a2f744abcab56742179e8710b3e01d83301a74367becb50707",
"md5": "6fafd0e9c6d2bd42e3a8324861dda578",
"sha256": "4043f4b259cf7edbb2f5f184731f1357268d747185ee556582eb91676c7148c8"
},
"downloads": -1,
"filename": "cdk8s_redis-0.1.800.tar.gz",
"has_sig": false,
"md5_digest": "6fafd0e9c6d2bd42e3a8324861dda578",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 260151,
"upload_time": "2024-12-24T12:16:54",
"upload_time_iso_8601": "2024-12-24T12:16:54.771278Z",
"url": "https://files.pythonhosted.org/packages/7c/33/f9f3e706d3a2f744abcab56742179e8710b3e01d83301a74367becb50707/cdk8s_redis-0.1.800.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-24 12:16:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cdk8s-team",
"github_project": "cdk8s-redis",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "cdk8s-redis"
}