diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2024-11-27 20:30:47 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2024-11-27 20:30:47 +0100 |
commit | 84648753cce419cbd6bd64673053fbbe396bf478 (patch) | |
tree | 9f57eb31a29f6d498f2930226dbd551544531140 | |
parent | 285520a1cea24d81ce3d90cecc0cb10452a22359 (diff) | |
download | infra-84648753cce419cbd6bd64673053fbbe396bf478.tar.gz infra-84648753cce419cbd6bd64673053fbbe396bf478.tar.bz2 infra-84648753cce419cbd6bd64673053fbbe396bf478.tar.xz infra-84648753cce419cbd6bd64673053fbbe396bf478.zip |
danneri
-rw-r--r-- | danneri/README.md | 3 | ||||
-rw-r--r-- | danneri/config.yaml | 1 | ||||
-rw-r--r-- | danneri/futar-deployment.yml | 34 |
3 files changed, 30 insertions, 8 deletions
diff --git a/danneri/README.md b/danneri/README.md index b674857..153e248 100644 --- a/danneri/README.md +++ b/danneri/README.md @@ -19,9 +19,12 @@ Copy /etc/rancher/k3s/k3s.yaml to ~/.kube/config. Adjust `server:` url. --set ipam.operator.clusterPoolIPv6PodCIDRList=fdb1:4242:3538:2008:aaaa:aaaa:aaaa::/96 \ --set ipam.operator.clusterPoolIPv6MaskSize=112 \ --set ipv6NativeRoutingCIDR=fdb1:4242:3538:2008::/64 \ + --set kubeProxyReplacement=true \ --set k8sServiceHost=fdb1:4242:3538:2008:9422:d355:95b7:f170 \ --set k8sServicePort=6443 +TODO: check `kubeProxyReplacement=true` / `kube-proxy-replacement`. + # Uninstalling Run: `k3s-uninstall.sh`. Note that this will delete everything, including `/etc/rancher/k3s/config.yaml`. diff --git a/danneri/config.yaml b/danneri/config.yaml index 5e7528d..198d09f 100644 --- a/danneri/config.yaml +++ b/danneri/config.yaml @@ -6,6 +6,7 @@ tls-san: node-ip: "fdb1:4242:3538:2008:9422:d355:95b7:f170" cluster-cidr: "fdb1:4242:3538:2008:aaaa:aaaa:aaaa::/96" service-cidr: "fdb1:4242:3538:2008:bbbb:bbbb:bbbb::/112" +# This https://docs.cilium.io/en/stable/network/kubernetes/requirements/#enable-automatic-node-cidr-allocation-recommended recommends that --allocate-node-cidrs is added to kube-controller-manager kube-controller-manager-arg: node-cidr-mask-size-ipv6=112 flannel-backend: none disable: diff --git a/danneri/futar-deployment.yml b/danneri/futar-deployment.yml index b7e759a..14c2fed 100644 --- a/danneri/futar-deployment.yml +++ b/danneri/futar-deployment.yml @@ -19,18 +19,11 @@ spec: image: ghcr.io/trygvis/futar:main ports: - containerPort: 8080 -# resources: -# limits: -# memory: 256Mi -# cpu: "250m" -# requests: -# memory: 128Mi -# cpu: "80m" --- apiVersion: v1 kind: Service metadata: - name: futar + name: futar-np spec: selector: app: futar @@ -40,3 +33,28 @@ spec: targetPort: 8080 nodePort: 30000 type: NodePort + +--- +apiVersion: v1 +kind: Service +metadata: + name: futar +spec: + selector: + app: futar + ports: + - protocol: TCP + port: 80 + +--- +apiVersion: v1 +kind: Service +metadata: + name: futar-lb +spec: + selector: + app: futar + type: LoadBalancer + ports: + - protocol: TCP + port: 80 |