Skip to content

Commit

Permalink
Merge pull request #2 from wiremind/feat/extra-nodes
Browse files Browse the repository at this point in the history
feat: introduce extra nodes option
  • Loading branch information
capuche2412 authored Jan 26, 2024
2 parents c85f8e1 + 9585a1b commit 9bbfd0c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,13 @@ curl -k https://127.0.0.1:8443
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
```
## Add Extra Nodes
Define the environment variable :
```bash
CLUSTER_EXTRA_NODES=" #Mind the EOL
- role: worker
- role: worker
- role: worker"
```
10 changes: 5 additions & 5 deletions docker/24-dind/Containerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM docker:24.0.4-dind as build
FROM docker:24.0.8-dind as build

ARG KIND_VERSION=v0.20.0

RUN apk add --no-cache go=1.20.10-r0 \
RUN apk add --no-cache go=1.21.6-r0 \
&& go install "sigs.k8s.io/kind@${KIND_VERSION}"

FROM docker:24.0.4-dind as base
FROM docker:24.0.8-dind as base

COPY --from=build /root/go/bin/kind /usr/local/bin/kind

RUN apk add --no-cache ca-certificates=20230506-r0 \
gettext=0.21.1-r7 \
bash=5.2.15-r5
gettext=0.22.3-r0 \
bash=5.2.21-r0

WORKDIR /app

Expand Down
1 change: 1 addition & 0 deletions docker/24-dind/kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ nodes:
# Propagate (hopefully) images cache
- containerPath: /var/lib/docker/image/overlay2
hostPath: /var/lib/docker/image/overlay2
#Extra Nodes (if needed) ${CLUSTER_EXTRA_NODES}
kubeadmConfigPatchesJSON6902:
- group: kubeadm.k8s.io
version: v1beta2
Expand Down

0 comments on commit 9bbfd0c

Please sign in to comment.