-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Add] : Update the status crd (#135)
* Add : status field Signed-off-by: Shubham Gupta <[email protected]> * fixes small Signed-off-by: Shubham Gupta <[email protected]> --------- Signed-off-by: Shubham Gupta <[email protected]>
- Loading branch information
1 parent
967773e
commit 50a7aa7
Showing
6 changed files
with
68 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,8 @@ Replace `<YourCertSecretName>` and `<YourPrivateKey>` with your specific values. | |
helm install <redis-operator> ot-helm/redis-operator --version=0.15.4 --appVersion=0.15.1 --set certificate.secretName=<YourCertSecretName> --set cert-manager=true --namespace <redis-operator> --create-namespace | ||
``` | ||
|
||
> Note: If `certificate.secretName` is not provided, the operator will generate a self-signed certificate and use it for webhook server. | ||
### 4. Patch the CA Bundle (if using cert-manager) | ||
|
||
```bash | ||
|
@@ -57,13 +59,15 @@ kubectl get crd redisreplications.redis.redis.opstreelabs.in -o=jsonpath='{.meta | |
kubectl get crd redissentinels.redis.redis.opstreelabs.in -o=jsonpath='{.metadata.annotations}' | ||
``` | ||
|
||
### How to generate private key | ||
### How to generate private key( Optional ) | ||
|
||
```bash | ||
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.crt | ||
kubectl create secret tls <webhook-server-cert> --key tls.key --cert tls.crt -n <redis-operator> | ||
``` | ||
|
||
> Note: This secret will be used for webhook server certificate so generate it before installing the redis-operator. | ||
## Default Values | ||
|
||
| Parameter | Description | Default | | ||
|
@@ -79,8 +83,9 @@ kubectl create secret tls <webhook-server-cert> --key tls.key --cert tls.crt -n | |
| `replicas` | Number of replicas | `1` | | ||
| `serviceAccountName` | Service account name | `redis-operator` | | ||
| `certificate.name` | Certificate name | `serving-cert` | | ||
| `certificate.secretName` | Certificate secret name | `webhook-server-cert` | | ||
| `issuer.name` | Issuer name | `letsencrypt-prod` | | ||
| `certificate.secretName` | Certificate secret name | `webhook-server-cert` | | ||
| `issuer.type` | Issuer type | `selfSigned` | | ||
| `issuer.name` | Issuer name | `redis-operator-issuer` | | ||
| `issuer.email` | Issuer email | `[email protected]` | | ||
| `issuer.server` | Issuer server URL | `https://acme-v02.api.letsencrypt.org/directory` | | ||
| `issuer.privateKeySecretName` | Private key secret name | `letsencrypt-prod` | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
|
||
{{/* Define issuer spec based on the type */}} | ||
{{- define "redis-operator.issuerSpec" -}} | ||
{{- if eq .Values.issuer.type "acme" }} | ||
acme: | ||
email: {{ .Values.issuer.email }} | ||
server: {{ .Values.issuer.server }} | ||
privateKeySecretRef: | ||
name: {{ .Values.issuer.privateKeySecretName }} | ||
solvers: | ||
- http01: | ||
ingress: | ||
class: {{ .Values.issuer.solver.ingressClass }} | ||
{{- else }} | ||
selfSigned: {} | ||
{{- end }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,8 @@ certificate: | |
secretName: webhook-server-cert | ||
|
||
issuer: | ||
name: letsencrypt-prod | ||
type: selfSigned | ||
name: redis-operator-issuer | ||
email: [email protected] | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
privateKeySecretName: letsencrypt-prod | ||
|