@@ -496,125 +496,7 @@ Apply the certificate:
496
496
kubectl apply -f certificate.yaml
497
497
```
498
498
499
- ### Step 5: Create the Gateway
500
-
501
- Create a Gateway resource to expose your services:
502
-
503
-
504
- ``` yaml
505
- # gateway.yaml
506
- apiVersion : gateway.networking.k8s.io/v1beta1
507
- kind : Gateway
508
- metadata :
509
- name : cilium-gateway
510
- namespace : kube-system
511
- spec :
512
- gatewayClassName : cilium
513
- infrastructure :
514
- annotations :
515
- io.cilium/lb-ipam-ips : " 192.168.178.77" # Replace with your desired IP
516
- cilium.io/hubble-visibility : " flow"
517
- cilium.io/preserve-client-cookies : " true"
518
- cilium.io/preserve-csrf-token : " true"
519
- io.cilium/websocket : " true"
520
- io.cilium/websocket-timeout : " 3600"
521
- addresses :
522
- - type : IPAddress
523
- value : 192.168.178.77 # Replace with your desired IP
524
- listeners :
525
- - name : opencloud-https
526
- protocol : HTTPS
527
- port : 443
528
- hostname : " cloud.opencloud.test"
529
- tls :
530
- mode : Terminate
531
- certificateRefs :
532
- - name : opencloud-wildcard-tls
533
- namespace : kube-system
534
- allowedRoutes :
535
- namespaces :
536
- from : All
537
- - name : keycloak-https
538
- protocol : HTTPS
539
- port : 443
540
- hostname : " keycloak.opencloud.test"
541
- tls :
542
- mode : Terminate
543
- certificateRefs :
544
- - name : opencloud-wildcard-tls
545
- namespace : kube-system
546
- allowedRoutes :
547
- namespaces :
548
- from : All
549
- - name : minio-https
550
- protocol : HTTPS
551
- port : 443
552
- hostname : " minio.opencloud.test"
553
- tls :
554
- mode : Terminate
555
- certificateRefs :
556
- - name : opencloud-wildcard-tls
557
- namespace : kube-system
558
- allowedRoutes :
559
- namespaces :
560
- from : All
561
- - name : onlyoffice-https
562
- protocol : HTTPS
563
- port : 443
564
- hostname : " onlyoffice.opencloud.test"
565
- tls :
566
- mode : Terminate
567
- certificateRefs :
568
- - name : opencloud-wildcard-tls
569
- namespace : kube-system
570
- allowedRoutes :
571
- namespaces :
572
- from : All
573
- - name : collabora-https
574
- protocol : HTTPS
575
- port : 443
576
- hostname : " collabora.opencloud.test"
577
- tls :
578
- mode : Terminate
579
- certificateRefs :
580
- - name : opencloud-wildcard-tls
581
- namespace : kube-system
582
- allowedRoutes :
583
- namespaces :
584
- from : All
585
- - name : collaboration-https
586
- protocol : HTTPS
587
- port : 443
588
- hostname : " collaboration.opencloud.test"
589
- tls :
590
- mode : Terminate
591
- certificateRefs :
592
- - name : opencloud-wildcard-tls
593
- namespace : kube-system
594
- allowedRoutes :
595
- namespaces :
596
- from : All
597
- - name : wopi-https
598
- protocol : HTTPS
599
- port : 443
600
- hostname : " wopiserver.opencloud.test"
601
- tls :
602
- mode : Terminate
603
- certificateRefs :
604
- - name : opencloud-wildcard-tls
605
- namespace : kube-system
606
- allowedRoutes :
607
- namespaces :
608
- from : All
609
- ` ` `
610
-
611
- Apply the Gateway:
612
-
613
- ` ` ` bash
614
- kubectl apply -f gateway.yaml
615
- ```
616
-
617
- ### Step 6: Configure DNS
499
+ ### Step 4: Configure DNS
618
500
619
501
Configure your DNS to point to the Gateway IP address. You can use a wildcard DNS record or individual records for each service:
620
502
@@ -634,22 +516,20 @@ Alternatively, for local testing, you can add entries to your `/etc/hosts` file:
634
516
192.168.178.77 wopiserver.opencloud.test
635
517
```
636
518
637
- ### Step 7 : Install OpenCloud
519
+ ### Step 5 : Install OpenCloud
638
520
639
- Finally, install OpenCloud using Helm:
521
+ Finally, install OpenCloud using Helm. This will create the necessary HTTPRoute
522
+ and Gateway resources:
640
523
641
524
``` bash
642
- # Clone the repository
643
- git clone https://github.com/opencloud-eu/helm.git opencloud-helm
644
- cd opencloud-helm
645
-
646
- # Install OpenCloud
647
- helm install opencloud ./charts/opencloud \
525
+ helm install opencloud oci://ghcr.io/opencloud-eu/helm-charts/opencloud \
526
+ --version 0.1.5 \
648
527
--namespace opencloud \
649
528
--create-namespace \
650
529
--set httpRoute.enabled=true \
651
- --set httpRoute.gateway.name=opencloud-gateway \
652
- --set httpRoute.gateway.namespace=kube-system
530
+ --set httpRoute.gateway.create=true \
531
+ --set httpRoute.gateway.className=cilium \
532
+ --set httpRoute.gateway.annotations." io\.cilium/lb-ipam-ips" =" 192.168.178.77"
653
533
```
654
534
655
535
### Troubleshooting
0 commit comments