Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
fix agent crictl
Browse files Browse the repository at this point in the history
  • Loading branch information
poblin-orange committed Jan 10, 2022
1 parent e56142c commit 746da5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jobs/k3s-agent/templates/bin/envrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash

export PATH=$PATH:/var/vcap/packages/k3s
alias crictl="k3s crictl -c /var/vcap//store/k3s-agent/agent/etc/crictl.yaml"
export PATH=$PATH:/var/vcap/packages/kubectl-k3s

alias crictl="k3s crictl -c /var/vcap/store/k3s-agent/agent/etc/crictl.yaml"
5 changes: 5 additions & 0 deletions jobs/k3s-agent/templates/bin/pre-start.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/sh
export JOB_DIR=/var/vcap/jobs/k3s-agent
/var/vcap/packages/k3s/k3s check-config

# Setup ssh env vars
${JOB_DIR}/bin/setup-user-env


#prepare a persistent directory so /etc/rancher/node paswword file is kept on bosh recreate
mkdir -p /etc
mkdir -p /var/vcap/store/k3s-node/etc/rancher
Expand Down

0 comments on commit 746da5b

Please sign in to comment.