Classes
Name | Description |
---|---|
MyRedis | No description |
Structs
Name | Description |
---|---|
ResourceQuantity | No description |
ResourceRequirements | No description |
StsOpts | No description |
Implements: IConstruct Extends: Construct
new MyRedis(scope: Construct, name: string, opts: StsOpts)
- scope (
Construct
) No description - name (
string
) No description - opts (
StsOpts
) No description- image (
string
) Container image. - namespace (
string
) namespace. - configMapName (
string
) The name of the configmap to use instead of the default one. Optional - createStorageClass (
boolean
) Option to create storage class, if enabled, a storage class will be created for the statefulset. Default: true - env (
Map<string, string>
) Environment variables to pass to the pod. Optional - labels (
Map<string, string>
) Additional labels to apply to resources. Default: none - nodeSelectorParams (
Map<string, string>
) nodeSelector params. Default: undefined - replicas (
number
) No description Default: 1 - resources (
ResourceRequirements
) Resources requests for the DB. Default: Requests = { CPU = 200m, Mem = 256Mi }, Limits = { CPU = 400m, Mem = 512Mi } - storageClassName (
string
) The storage class to use for our PVC. Default: 'gp2-expandable' - storageClassParams (
Map<string, string>
) Storage class params. Default: { type = gp2, fsType: ext4 } - volumeProvisioner (
string
) Each StorageClass has a provisioner that determines what volume plugin is used for provisioning PVs. Default: 'kubernetes.io/aws-ebs' - volumeSize (
string
) The Volume size of our DB in string, e.g 10Gi, 20Gi. Optional
- image (
Name | Type | Description |
---|---|---|
name🔹 | string |
|
namespace🔹 | string |
Name | Type | Description |
---|---|---|
cpu?🔹 | string |
Default: no limit |
memory?🔹 | string |
Default: no limit |
Name | Type | Description |
---|---|---|
limits?🔹 | ResourceQuantity |
Maximum resources for the web app. Default: CPU = 400m, Mem = 512Mi |
requests?🔹 | ResourceQuantity |
Required resources for the web app. Default: CPU = 200m, Mem = 256Mi |
Name | Type | Description |
---|---|---|
image🔹 | string |
Container image. |
namespace🔹 | string |
namespace. |
configMapName?🔹 | string |
The name of the configmap to use instead of the default one. Optional |
createStorageClass?🔹 | boolean |
Option to create storage class, if enabled, a storage class will be created for the statefulset. Default: true |
env?🔹 | Map<string, string> |
Environment variables to pass to the pod. Optional |
labels?🔹 | Map<string, string> |
Additional labels to apply to resources. Default: none |
nodeSelectorParams?🔹 | Map<string, string> |
nodeSelector params. Default: undefined |
replicas?🔹 | number |
Default: 1 |
resources?🔹 | ResourceRequirements |
Resources requests for the DB. Default: Requests = { CPU = 200m, Mem = 256Mi }, Limits = { CPU = 400m, Mem = 512Mi } |
storageClassName?🔹 | string |
The storage class to use for our PVC. Default: 'gp2-expandable' |
storageClassParams?🔹 | Map<string, string> |
Storage class params. Default: { type = gp2, fsType: ext4 } |
volumeProvisioner?🔹 | string |
Each StorageClass has a provisioner that determines what volume plugin is used for provisioning PVs. Default: 'kubernetes.io/aws-ebs' |
volumeSize?🔹 | string |
The Volume size of our DB in string, e.g 10Gi, 20Gi. Optional |