UNCLASSIFIED - NO CUI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bigbang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Big Bang
bigbang
Commits
66e73f3a
Commit
66e73f3a
authored
1 year ago
by
Danny Gershman
Committed by
Micah Nagel
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Override k8s version for k3d
parent
a939d458
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2648
Override k8s version for k3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/assets/scripts/developer/k3d-dev.sh
+6
-0
6 additions, 0 deletions
docs/assets/scripts/developer/k3d-dev.sh
docs/developer/aws-k3d-script.md
+13
-3
13 additions, 3 deletions
docs/developer/aws-k3d-script.md
with
19 additions
and
3 deletions
docs/assets/scripts/developer/k3d-dev.sh
+
6
−
0
View file @
66e73f3a
...
...
@@ -434,6 +434,12 @@ k3d_command+=" --k3s-arg \"--disable=traefik@server:0\" --k3s-arg \"--disable=m
# Port mappings to support Istio ingress + API access
k3d_command+
=
" --port 80:80@loadbalancer --port 443:443@loadbalancer --api-port 6443"
K3S_IMAGE_TAG
=
${
K3S_IMAGE_TAG
:
=
""
}
if
[[
!
-z
"
$K3S_IMAGE_TAG
"
]]
;
then
echo
"Using custom K3S image tag
$K3S_IMAGE_TAG
..."
k3d_command+
=
" --image docker.io/rancher/k3s:
$K3S_IMAGE_TAG
"
fi
# Add MetalLB specific k3d config
if
[[
"
$METAL_LB
"
==
true
]]
;
then
# create docker network for k3d cluster
...
...
This diff is collapsed.
Click to expand it.
docs/developer/aws-k3d-script.md
+
13
−
3
View file @
66e73f3a
...
...
@@ -58,18 +58,28 @@ k3d-dev.sh -b -p -m -d -h
The script uses the default AWS profile and defaults the VPC id and AMI id.
To change this default behavior you can export environment variables before running the script.
Run the script with a specific AWS profile by first exporting the AWS_PROFILE environment variable
Run the script with a specific AWS profile by first exporting the AWS_PROFILE environment variable
:
```
shell
export
AWS_PROFILE
=
my-aws-profile
```
To run the script with a specific VPC
To run the script with a specific VPC
:
```
shell
export
VPC_ID
=
vpc-XXXXXXXXXXXX
```
To run the script with a specific AMI
To run the script with a specific AMI
:
```
shell
export
AMI_ID
=
ami-XXXXXXXXXX
```
To specify a specific Kubernetes version (the eligible choices are
[
here
](
https://hub.docker.com/r/rancher/k3s/tags
)
):
```
shell
export
K3S_IMAGE_TAG
=
sometag
```
You can also run these inline with the script, without exporting them to your environment. Example:
```
shell
K3S_IMAGE_TAG
=
v1.24.12-k3s1 ./docs/assets/scripts/developer/k3d-dev.sh
```
## After Running The Script
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment