diff --git a/content/post/kubernetes-rancher-cd-pipeline.md b/content/post/kubernetes-rancher-cd-pipeline.md index 505d138..cc209b5 100644 --- a/content/post/kubernetes-rancher-cd-pipeline.md +++ b/content/post/kubernetes-rancher-cd-pipeline.md @@ -85,3 +85,7 @@ notification: - Changed - Failed ``` + +#### If it doesn't trigger + +Look at [this](https://forums.rancher.com/t/pipeline-not-triggering/12691/5) if it doesn't trigger your build. \ No newline at end of file diff --git a/content/post/rancher-k3s-with-galera.md b/content/post/rancher-k3s-with-galera.md index 65de240..49602a8 100644 --- a/content/post/rancher-k3s-with-galera.md +++ b/content/post/rancher-k3s-with-galera.md @@ -141,7 +141,7 @@ wsrep_on = on wsrep_provider = /usr/lib/galera/libgalera_smm.so wsrep_cluster_address = gcomm://10.128.1.17,10.128.1.18,10.128.1.19 wsrep_cluster_name = k3s_cluster_0 -wsrep_provider_options="gcache.size = 512M" +wsrep_provider_options="gcache.size=512M" wsrep_sst_method = mariabackup wsrep_sst_auth = root:SuperSecretRootPassword @@ -211,7 +211,7 @@ GRANT ALL PRIVILEGES ON `k3s`.* TO 'k3s'@'%' IDENTIFIED BY ''; Install k3s one each nodes, one after another: ```bash -curl -sfL https://get.k3s.io | sh -s - server --datastore-endpoint="mysql://k3s:@tcp(localhost:3306)/k3s" --no-deploy servicelb +curl -sfL https://get.k3s.io | sh -s - server --datastore-endpoint="mysql://k3s:@tcp(localhost:3306)/k3s" --no-deploy servicelb --no-deploy nginx ``` Check the nodes after. @@ -298,12 +298,20 @@ cert-manager-cainjector-6659d6844d-zrr5h 1/1 Running 0 54s cert-manager-webhook-547567b88f-ptrlg 1/1 Running 0 54s ``` +#### Install Nginx + +```bash +helm install nginx-ingress stable/nginx-ingress --namespace kube-system \ + --set controller.image.runAsUser=101 \ + --set defaultBackend.enabled=false +``` + #### Install Rancher ```bash -helm repo add rancher-latest https://releases.rancher.com/server-charts/latest +helm repo add rancher-stable https://releases.rancher.com/server-charts/stable kubectl create namespace cattle-system -helm install rancher-latest/rancher \ +helm install rancher-stable/rancher \ --name rancher \ --namespace cattle-system \ --set hostname=rancher.example.org \ @@ -357,7 +365,8 @@ Here the IP is 10.128.3.1 i forward HTTP (80) and HTTPS (443) to it. Wait for the Let's Encrypt Cert -``` + +```bash $ kubectl -n cattle-system describe certificate Name: tls-rancher-ingress Namespace: cattle-system diff --git a/deployment.yaml b/deployment.yaml index d51debd..c994050 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -28,7 +28,7 @@ items: spec: containers: - image: registry.wmk8s.com/rene.jochums.at/homepage:${CICD_GIT_TAG} - imagePullPolicy: Always + imagePullPolicy: IfNotPresent name: nginx resources: {} securityContext: