Skip to content

Commit

Permalink
Remove unused KUBERNETES_VERSION and kubeconfig context setup
Browse files Browse the repository at this point in the history
The KUBERNETES_VERSION variable and the set_kubeconfig_context function have been removed from create_cluster.sh since they were no longer in use. The README.md file was also updated with image placements for better visual presentation of the project. These changes contribute to cleaner, more efficient code.
  • Loading branch information
shahariaazam committed Dec 17, 2023
1 parent 790b969 commit d071be8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<img src="https://kind.sigs.k8s.io/logo/logo.png" width="160" height="100">
<img src="https://helm.sh/img/helm.svg" width="100" height="100">

# k8s-dev-cluster

Deploy a local kubernetes cluster for development purpose. This repository contains all the necessary tools to create a local kubernetes cluster using `Kind` and `Helmfile`

<img src="https://kind.sigs.k8s.io/logo/logo.png" width="160" height="100">
<img src="https://helm.sh/img/helm.svg" width="100" height="100">

## Prerequisites

- [Docker](https://docs.docker.com/get-docker/)
Expand Down
10 changes: 0 additions & 10 deletions create_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Set the desired configuration
KIND_VERSION="v0.20.0"
CLUSTER_NAME="local-k8s"
KUBERNETES_VERSION="v1.22.0"
NODES=2

# Function to delete an existing Kind cluster
Expand Down Expand Up @@ -76,12 +75,6 @@ nodes:
EOF
}

# Function to set kubeconfig context
set_kubeconfig_context() {
local cluster_name=$1
export KUBECONFIG="$(kind get kubeconfig-path --name="$cluster_name")"
}

# Function to verify cluster status
verify_cluster_status() {
echo "Verifying cluster status..."
Expand Down Expand Up @@ -207,9 +200,6 @@ prepare_kind_cluster() {
# Create the Kind cluster
create_cluster "$cluster_name" "$nodes"

# Set kubeconfig context
##set_kubeconfig_context "$cluster_name"

# Verify cluster status
verify_cluster_status

Expand Down

0 comments on commit d071be8

Please sign in to comment.