Can i use kubespray without kubespray_git_repo?

6/28/2018

I use https://gist.github.com/ruzickap/c072cdfe480ca52bd32b6c4fcf8397a2 for deploy kubernetes

Need:

# Create kubespray config file
cat > ~/.kubespray.yml << EOF
kubespray_git_repo: "https://github.com/kubespray/kubespray.git"
kubespray_path: "$PWD/kubespray"
loglevel: "info"
EOF

Can I use kubespray without kubespray_git_repo, kubespray_path ?

-- Anton Patsev
kubernetes

1 Answer

6/29/2018

Can i use kubespray without kubespray_git_repo, kubespray_path ?

Without question, yes; arguably it will most often be used without those things (I have actually never even heard of kubespray prepare):

  1. download a release
  2. pip install ansible (if you don't already have ansible; you can also brew install ansible if you are on a Mac and/or have concerns about pip messing up your global pythonpath)
  3. use ansible-playbook
  4. declare victory
-- mdaniel
Source: StackOverflow