Skip to content

Commit

Permalink
use server-side apply
Browse files Browse the repository at this point in the history
  • Loading branch information
jashan-lco committed Feb 11, 2025
1 parent a7a67be commit dcef77f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions local-cluster/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ in {

local-cluster-nginx-ingress-up.exec = ''
set -ex -o pipefail
kustomize build "${./ingress-nginx}" | kubectl apply -f -
kubectl apply -f "${./configmap-coredns.yaml}"
kustomize build "${./ingress-nginx}" | kubectl apply --server-side -f -
kubectl apply --server-side --force-conflicts -f "${./configmap-coredns.yaml}"
'';

local-cluster-nginx-ingress-down.exec = ''
Expand All @@ -70,7 +70,7 @@ in {

local-cluster-k8s-dashboard-up.exec = ''
set -ex -o pipefail
kustomize build "${./dash}" | kubectl apply -f -
kustomize build "${./dash}" | kubectl apply --server-side -f -
'';

local-cluster-k8s-dashboard-down.exec = ''
Expand All @@ -80,7 +80,7 @@ in {

local-cluster-update-local-lco-earth-cert.exec = ''
set -ex
kubectl apply -f https://raw.githubusercontent.com/LCOGT/local-lco-earth-cert/refs/heads/main/tls.yaml
kubectl apply --server-side -f https://raw.githubusercontent.com/LCOGT/local-lco-earth-cert/refs/heads/main/tls.yaml
'';
};
};
Expand Down

0 comments on commit dcef77f

Please sign in to comment.