@@ -481,125 +481,7 @@ Apply the certificate:
481481kubectl apply -f cluster-issuer.yaml
482482```
483483
484- ### Step 4: Create the Gateway
485-
486- Create a Gateway resource to expose your services:
487-
488-
489- ``` yaml
490- # gateway.yaml
491- apiVersion : gateway.networking.k8s.io/v1beta1
492- kind : Gateway
493- metadata :
494- name : cilium-gateway
495- namespace : kube-system
496- spec :
497- gatewayClassName : cilium
498- infrastructure :
499- annotations :
500- io.cilium/lb-ipam-ips : " 192.168.178.77" # Replace with your desired IP
501- cilium.io/hubble-visibility : " flow"
502- cilium.io/preserve-client-cookies : " true"
503- cilium.io/preserve-csrf-token : " true"
504- io.cilium/websocket : " true"
505- io.cilium/websocket-timeout : " 3600"
506- addresses :
507- - type : IPAddress
508- value : 192.168.178.77 # Replace with your desired IP
509- listeners :
510- - name : opencloud-https
511- protocol : HTTPS
512- port : 443
513- hostname : " cloud.opencloud.test"
514- tls :
515- mode : Terminate
516- certificateRefs :
517- - name : opencloud-wildcard-tls
518- namespace : kube-system
519- allowedRoutes :
520- namespaces :
521- from : All
522- - name : keycloak-https
523- protocol : HTTPS
524- port : 443
525- hostname : " keycloak.opencloud.test"
526- tls :
527- mode : Terminate
528- certificateRefs :
529- - name : opencloud-wildcard-tls
530- namespace : kube-system
531- allowedRoutes :
532- namespaces :
533- from : All
534- - name : minio-https
535- protocol : HTTPS
536- port : 443
537- hostname : " minio.opencloud.test"
538- tls :
539- mode : Terminate
540- certificateRefs :
541- - name : opencloud-wildcard-tls
542- namespace : kube-system
543- allowedRoutes :
544- namespaces :
545- from : All
546- - name : onlyoffice-https
547- protocol : HTTPS
548- port : 443
549- hostname : " onlyoffice.opencloud.test"
550- tls :
551- mode : Terminate
552- certificateRefs :
553- - name : opencloud-wildcard-tls
554- namespace : kube-system
555- allowedRoutes :
556- namespaces :
557- from : All
558- - name : collabora-https
559- protocol : HTTPS
560- port : 443
561- hostname : " collabora.opencloud.test"
562- tls :
563- mode : Terminate
564- certificateRefs :
565- - name : opencloud-wildcard-tls
566- namespace : kube-system
567- allowedRoutes :
568- namespaces :
569- from : All
570- - name : collaboration-https
571- protocol : HTTPS
572- port : 443
573- hostname : " collaboration.opencloud.test"
574- tls :
575- mode : Terminate
576- certificateRefs :
577- - name : opencloud-wildcard-tls
578- namespace : kube-system
579- allowedRoutes :
580- namespaces :
581- from : All
582- - name : wopi-https
583- protocol : HTTPS
584- port : 443
585- hostname : " wopiserver.opencloud.test"
586- tls :
587- mode : Terminate
588- certificateRefs :
589- - name : opencloud-wildcard-tls
590- namespace : kube-system
591- allowedRoutes :
592- namespaces :
593- from : All
594- ` ` `
595-
596- Apply the Gateway:
597-
598- ` ` ` bash
599- kubectl apply -f gateway.yaml
600- ```
601-
602- ### Step 5: Configure DNS
484+ ### Step 4: Configure DNS
603485
604486Configure your DNS to point to the Gateway IP address. You can use a wildcard DNS record or individual records for each service:
605487
@@ -619,22 +501,20 @@ Alternatively, for local testing, you can add entries to your `/etc/hosts` file:
619501192.168.178.77 wopiserver.opencloud.test
620502```
621503
622- ### Step 6 : Install OpenCloud
504+ ### Step 5 : Install OpenCloud
623505
624- Finally, install OpenCloud using Helm:
506+ Finally, install OpenCloud using Helm. This will create the necessary HTTPRoute
507+ and Gateway resources:
625508
626509``` bash
627- # Clone the repository
628- git clone https://github.com/opencloud-eu/helm.git opencloud-helm
629- cd opencloud-helm
630-
631- # Install OpenCloud
632- helm install opencloud ./charts/opencloud \
510+ helm install opencloud oci://ghcr.io/opencloud-eu/helm-charts/opencloud \
511+ --version 0.1.5 \
633512 --namespace opencloud \
634513 --create-namespace \
635514 --set httpRoute.enabled=true \
636- --set httpRoute.gateway.name=opencloud-gateway \
637- --set httpRoute.gateway.namespace=kube-system
515+ --set httpRoute.gateway.create=true \
516+ --set httpRoute.gateway.className=cilium \
517+ --set httpRoute.gateway.annotations." io\.cilium/lb-ipam-ips" =" 192.168.178.77"
638518```
639519
640520### Troubleshooting
0 commit comments