Command: k run -h | grep '# ' -A2
When is it useful: copy/paste command to notepad, edit values and execute to create desired resource
Result: list of different ways to create k8s resources imperatively using kubectl
--- | |
- hosts: all | |
vars: | |
UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx' | |
UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx' | |
UBUNTU_COMMON_LOGWATCH_EMAIL: [email protected] | |
ubuntu_common_deploy_user_name: deploy | |
ubuntu_common_deploy_public_keys: | |
- ~/.ssh/id_rsa.pub |
Command: k run -h | grep '# ' -A2
When is it useful: copy/paste command to notepad, edit values and execute to create desired resource
Result: list of different ways to create k8s resources imperatively using kubectl
from fabric.api import local, env, run, roles, execute, put | |
from fabric.utils import abort | |
env.user = "playuser" | |
env.roledefs = { | |
'web': ['web.example.com'], | |
'batch': ['batch.example.com'] | |
} | |
env.num_of_releases = 3 |