Skip to content

Commit 8ce67b6

Browse files
committed
feat(workflow): add metallb
1 parent e6e6663 commit 8ce67b6

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

_scripts/install.sh

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,37 @@ else
4242
k3s_install_url="https://get.k3s.io"
4343
fi
4444
if [[ -z "${K3S_URL}" ]] ; then
45-
INSTALL_K3S_EXEC="server --no-flannel --cluster-cidr=10.233.0.0/16"
45+
INSTALL_K3S_EXEC="server --flannel-backend=none --disable=traefik --disable=servicelb --cluster-cidr=10.233.0.0/16"
4646
else
47-
INSTALL_K3S_EXEC="agent --no-flannel"
47+
INSTALL_K3S_EXEC="agent --flannel-backend=none"
4848
fi
4949

50-
alias install-k3s="curl -sfL "${k3s_install_url}" | sh - $@"
51-
50+
alias install-k3s="curl -sfL "${k3s_install_url}" |sh - $@"
51+
export INSTALL_K3S_EXEC
5252
install-k3s
53+
mount bpffs -t bpf /sys/fs/bpf
5354

5455
curl -sfL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash -
5556

5657
helm repo add cilium https://helm.cilium.io/
58+
helm repo add bitnami https://charts.bitnami.com/bitnami
59+
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
5760
helm repo add longhorn https://charts.longhorn.io
5861
helm repo add jetstack https://charts.jetstack.io
5962
helm repo add svc-cat https://kubernetes-sigs.github.io/service-catalog
6063
helm repo add drycc https://charts.drycc.cc/${CHANNEL:-stable}
6164
helm repo update
6265

63-
helm install cilium --set operator.replicas=1 --set cni.chainingMode=portmap cilium/cilium --namespace kube-system
66+
helm install cilium --set operator.replicas=1 cilium/cilium --namespace kube-system
67+
helm install metallb bitnami/metallb --namespace kube-system -f - <<EOF
68+
configInline:
69+
address-pools:
70+
- name: default
71+
protocol: layer2
72+
addresses:
73+
- ${METALLB_ADDRESS_POOLS:-172.16.0.0/12}
74+
EOF
75+
helm install ingress-nginx ingress-nginx/ingress-nginx --namespace kube-system
6476
helm install longhorn --create-namespace --set persistence.defaultClass=false --set persistence.defaultClassReplicaCount=1 longhorn/longhorn --namespace longhorn-system
6577
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --set installCRDs=true
6678
helm install catalog svc-cat/catalog --set asyncBindingOperationsEnabled=true --namespace catalog --create-namespace --wait
@@ -81,7 +93,7 @@ helm install drycc drycc/workflow \
8193
--set builder.service.type=LoadBalancer \
8294
--set global.cluster_domain="cluster.local" \
8395
--set global.platform_domain="${PLATFORM_DOMAIN}" \
84-
--set global.ingress_class=traefik \
96+
--set global.ingress_class=nginx \
8597
--set fluentd.daemon_environment.CONTAINER_TAIL_PARSER_TYPE="/^(?<time>.+) (?<stream>stdout|stderr)( (?<tags>.))? (?<log>.*)$/" \
8698
--set controller.app_storage_class=longhorn \
8799
--set minio.persistence.enabled=true \

src/quickstart/install-workflow.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ PLATFORM_DOMAIN | Required item, specify drycc's domain name
124124
DRYCC_ADMIN_USERNAME | Required item, specify drycc's admin username
125125
DRYCC_ADMIN_PASSWORD | Required item, specify drycc's admin password
126126
CHANNEL | By default, `stable` channel will be installed. You can also specify `testing`
127+
METALLB_ADDRESS_POOLS | IP pool for LoadBalancer, it can be a public IP pool. The default is `172.16.0.0/12`
127128
INSTALL_K3S_MIRROR | Specify the accelerated mirror location. Currently, only `cn` is supported
128129
MINIO_PERSISTENCE_SIZE | The size of the persistence space allocated to `minio`, which is `5Gi` by default
129130
MONITOR_PERSISTENCE_SIZE | The size of the persistence space allocated to `monitor`, which is `5Gi` by default

0 commit comments

Comments
 (0)