# 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/f7/57/fecfa12fa71429a2f553d00e592c769f2ed10f88bb9f4057b9cc1489de0b/cdk8s-redis-0.1.771.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.771",
"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": "9824866055fefb82a59ca998f309a2f6f89a8c1eb724710d6a62ce7df3d31857",
"md5": "0a682c8583441bef9e557140d6723e74",
"sha256": "448aa0b80ccbcc40666da98d97a5e0a2283c16ee1f4b35ddd54bef4e8a69f707"
},
"downloads": -1,
"filename": "cdk8s_redis-0.1.771-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0a682c8583441bef9e557140d6723e74",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 257223,
"upload_time": "2024-03-23T12:14:08",
"upload_time_iso_8601": "2024-03-23T12:14:08.584794Z",
"url": "https://files.pythonhosted.org/packages/98/24/866055fefb82a59ca998f309a2f6f89a8c1eb724710d6a62ce7df3d31857/cdk8s_redis-0.1.771-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f757fecfa12fa71429a2f553d00e592c769f2ed10f88bb9f4057b9cc1489de0b",
"md5": "29ec5659fec0032d9fe4528ef88f0ff6",
"sha256": "09eda44739e02079de838e7e09f33505673ca1ab91b457beb8137559210488bd"
},
"downloads": -1,
"filename": "cdk8s-redis-0.1.771.tar.gz",
"has_sig": false,
"md5_digest": "29ec5659fec0032d9fe4528ef88f0ff6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 258834,
"upload_time": "2024-03-23T12:14:14",
"upload_time_iso_8601": "2024-03-23T12:14:14.734566Z",
"url": "https://files.pythonhosted.org/packages/f7/57/fecfa12fa71429a2f553d00e592c769f2ed10f88bb9f4057b9cc1489de0b/cdk8s-redis-0.1.771.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-23 12:14:14",
"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"
}