Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-romero committed May 28, 2024
1 parent 172c40e commit 345c69c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 3 additions & 0 deletions deploy/bin/cluster_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@ $K delete configmap --ignore-not-found setup-db -n ${DEPLOYMENT_NAMESPACE}
$K delete configmap --ignore-not-found db-reset -n ${DEPLOYMENT_NAMESPACE}
$K delete secret --ignore-not-found groundlight-api-token -n ${DEPLOYMENT_NAMESPACE}

set +x # temporarily disable command echoing to avoid printing secrets
if [[ -n "${GROUNDLIGHT_API_TOKEN}" ]]; then
echo "Creating groundlight-api-token secret"
$K create secret generic groundlight-api-token --from-literal=GROUNDLIGHT_API_TOKEN=${GROUNDLIGHT_API_TOKEN} -n ${DEPLOYMENT_NAMESPACE}
fi
set -x # re-enable command echoing

if [[ -n "${EDGE_CONFIG}" ]]; then
echo "Creating config from EDGE_CONFIG env var"
Expand Down
7 changes: 0 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,9 @@ services:
soft: 65535
hard: 65535
privileged: true
# ports:
# - 6443:6443 # Kubernetes API Server
# - 80:80 # Ingress controller port 80
# - 443:443 # Ingress controller port 443
# - 2379:2379 # etcd client requests
# - 2380:2380 # etcd peer communication
network_mode: host
# https://docs.k3s.io/cli/server#cluster-options
environment:
K3S_TOKEN: "mynodetoken"
K3S_KUBECONFIG_OUTPUT: "/shared/kubeconfig.yaml"
K3S_KUBECONFIG_MODE: "666"
EXTRA_K3S_SERVER_ARGS: ""
Expand Down

0 comments on commit 345c69c

Please sign in to comment.