Horje
set dynamic values with kubernetes yaml file template Code Example
set dynamic values with kubernetes yaml file template
1

I create a script called kubectl_apply. It loads variables from .env, replace ${CUSTOMVAR} in yml and pass it to kubectl command

  #!/bin/bash
  set -a
  source .env
  set +a
  eval "cat <<EOF
  $(<$1)
  EOF
  " | kubectl apply -f -




Shell

Related
is there any difference between git push and git push origin master Code Example is there any difference between git push and git push origin master Code Example
start shell on rosetta 2 Code Example start shell on rosetta 2 Code Example
fleet management software github Code Example fleet management software github Code Example
"start": "concurrently \"npm run server\" \"npm run client\"", Code Example "start": "concurrently \"npm run server\" \"npm run client\"", Code Example
bash execute last command by keyword Code Example bash execute last command by keyword Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11