helm: add an ingress for ceph-objectores

Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>
(cherry picked from commit 100f8c1320)
This commit is contained in:
Cyril Jouve authored and Mergify committed 2023-04-24 14:27:17 +00:00
1 parent 361d091556
commit bb649aa02c
4 files changed
+59

No files matched your search

@@ -110,6 +110,12 @@ The `cephObjectStores` array in the values file will define a list of CephObject
| `storageClass.name` | The name of the storage class | `ceph-bucket` |
| `storageClass.parameters` | See [Object Store storage class](../Storage-Configuration/Object-Storage-RGW/ceph-object-bucket-claim.md) documentation or the helm values.yaml for suitable values | see values.yaml |
| `storageClass.reclaimPolicy` | The default [Reclaim Policy](https://kubernetes.io/docs/concepts/storage/storage-classes/#reclaim-policy) to apply to PVCs created with this storage class. | `Delete` |
| `ingress.enabled` | Enable an ingress for the object store | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.host.name` | Ingress hostname | `""` |
| `ingress.host.path` | Ingress path prefix | `/` |
| `ingress.tls` | Ingress tls | `/` |
| `ingress.ingressClassName` | Ingress tls | `""` |
### **Existing Clusters**
@@ -137,6 +137,12 @@ The `cephObjectStores` array in the values file will define a list of CephObject
| `storageClass.name` | The name of the storage class | `ceph-bucket` |
| `storageClass.parameters` | See [Object Store storage class](../Storage-Configuration/Object-Storage-RGW/ceph-object-bucket-claim.md) documentation or the helm values.yaml for suitable values | see values.yaml |
| `storageClass.reclaimPolicy` | The default [Reclaim Policy](https://kubernetes.io/docs/concepts/storage/storage-classes/#reclaim-policy) to apply to PVCs created with this storage class. | `Delete` |
| `ingress.enabled` | Enable an ingress for the object store | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.host.name` | Ingress hostname | `""` |
| `ingress.host.path` | Ingress path prefix | `/` |
| `ingress.tls` | Ingress tls | `/` |
| `ingress.ingressClassName` | Ingress tls | `""` |
### **Existing Clusters**
@@ -0,0 +1,35 @@
{{- range .Values.cephObjectStores }}
{{- if dig "ingress" "enabled" false . }}
---
apiVersion: {{ include "capabilities.ingress.apiVersion" $ }}
kind: Ingress
metadata:
name: {{ .name }}
{{- with .ingress.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
spec:
rules:
- host: {{ .ingress.host.name }}
http:
paths:
- path: {{ .ingress.host.path | default "/" }}
backend:
{{- if (eq "networking.k8s.io/v1" (include "capabilities.ingress.apiVersion" $)) }}
service:
name: rook-ceph-rgw-{{ .name }}
port:
number: {{ .spec.gateway.securePort | default .spec.gateway.port }}
pathType: Prefix
{{- else }}
serviceName: rook-ceph-rgw-{{ .name }}
servicePort: {{ .spec.gateway.securePort | default .spec.gateway.port }}
{{- end }}
{{- with .ingress.ingressClassName }}
ingressClassName: {{ . }}
{{- end }}
{{- with .ingress.tls }}
tls: {{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
@@ -600,3 +600,15 @@ cephObjectStores:
parameters:
# note: objectStoreNamespace and objectStoreName are configured by the chart
region: us-east-1
ingress:
# Enable an ingress for the ceph-objectstore
enabled: false
# annotations: {}
# host:
# name: objectstore.example.com
# path: /
# tls:
# - hosts:
# - objectstore.example.com
# secretName: ceph-objectstore-tls
# ingressClassName: nginx