Skip to content

Commit

Permalink
explicit set k3d context
Browse files Browse the repository at this point in the history
  • Loading branch information
rasswanth-s committed Sep 19, 2024
1 parent da5dc2c commit 2575f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ create-cluster cluster port *args='': start-registry && (apply-coredns cluster)

# Since k3d adds k3d- prefix to the cluster name
# we create a new context without the prefix
kubectl config rename-context k3d-{{cluster}} {{cluster}}
kubectl config set-context {{ cluster }} --cluster=k3d-{{ cluster}} --user=admin@k3d-{{ cluster}}

[group('cluster')]
[private]
Expand Down

0 comments on commit 2575f51

Please sign in to comment.