Skip to content

Commit

Permalink
generate kubeconfig and set mode
Browse files Browse the repository at this point in the history
  • Loading branch information
poblin-orange committed Jan 24, 2020
1 parent 6032222 commit 560f3d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jobs/k3s-server/templates/bin/ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ case $1 in

echo $$ > $PIDFILE

export K3S_KUBECONFIG_OUTPUT=/var/vcap/store/k3s-server/kubeconfig.yml

exec /var/vcap/packages/k3s/k3s server \
-v 4 \
--data-dir=/var/vcap/store/k3s-server \
--default-local-storage-path=/var/vcap/store/k3s-server/local-storage-path \
--private-registry=/var/vcap/jobs/k3s-server/config/registries.yaml \
--write-kubeconfig=/var/vcap/store/k3s-server/kubeconfig.yml \
--write-kubeconfig-mode=755 \
>> $LOG_DIR/k3s-server.stdout.log \
2>> $LOG_DIR/k3s-server.stderr.log

Expand Down

0 comments on commit 560f3d5

Please sign in to comment.