# 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/bc/d2/891b3253fd9b816f9cc5a7df173395b0027b150510f1ed036702aa7d8eb9/cdk8s_redis-0.1.795.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.795",
"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": "a5fe79bbdda09989674c4c6fe8b87f781e54aaff7276f74abf7159427a151295",
"md5": "f0daeab4ef13102efa3fae34299edfd8",
"sha256": "54a22fbd4613996e267f3b1f6464d418e3021c2510062c4c52b8b49bb6a3c9fe"
},
"downloads": -1,
"filename": "cdk8s_redis-0.1.795-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f0daeab4ef13102efa3fae34299edfd8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 258706,
"upload_time": "2024-11-16T12:16:02",
"upload_time_iso_8601": "2024-11-16T12:16:02.644659Z",
"url": "https://files.pythonhosted.org/packages/a5/fe/79bbdda09989674c4c6fe8b87f781e54aaff7276f74abf7159427a151295/cdk8s_redis-0.1.795-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bcd2891b3253fd9b816f9cc5a7df173395b0027b150510f1ed036702aa7d8eb9",
"md5": "e6f0ac31b4531b3833c1c27454a8633a",
"sha256": "478971db96a545318d865f65e09efc07c0c86f258b8a8612ab72875f06d49d2c"
},
"downloads": -1,
"filename": "cdk8s_redis-0.1.795.tar.gz",
"has_sig": false,
"md5_digest": "e6f0ac31b4531b3833c1c27454a8633a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 260043,
"upload_time": "2024-11-16T12:16:05",
"upload_time_iso_8601": "2024-11-16T12:16:05.295778Z",
"url": "https://files.pythonhosted.org/packages/bc/d2/891b3253fd9b816f9cc5a7df173395b0027b150510f1ed036702aa7d8eb9/cdk8s_redis-0.1.795.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-16 12:16:05",
"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"
}