Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/markjacksonfishing/kubeark

KubeARK is a Kubectl middleware designed to give template engine functionality to both locally and remotely hosted yaml files. This will allow you to store yamls in your github with bash variables and execute a single command to replace variables in line with the Kubectl apply or create. This allows you to template remotely hosted YAML files for one line installs for customers.
https://github.com/markjacksonfishing/kubeark

Last synced: 27 days ago
JSON representation

KubeARK is a Kubectl middleware designed to give template engine functionality to both locally and remotely hosted yaml files. This will allow you to store yamls in your github with bash variables and execute a single command to replace variables in line with the Kubectl apply or create. This allows you to template remotely hosted YAML files for one line installs for customers.

Awesome Lists containing this project

README

        

# Description
KubeARK is a Kubectl middleware designed to give template engine functionality to both locally and remotely hosted yaml files. This will allow you to store yamls in your github with bash variables and execute a single command to replace variables in line with the Kubectl apply or create. This allows you to template remotely hosted YAML files for one line installs for customers.

# Install
This will ask you for your sudo password when executed. You must have sudo privileges because it moves the file to /usr/local/bin and chmod's the file to be executable.

`bash <(curl -s https://raw.githubusercontent.com/iDevOpsio/kubeark/master/installKubeArk.sh)`

# Test

## Local File
`kubeark apply -f"./nginx.test.yaml" -e"port=80" -n${NAMESPACE}`

## Remote File
`kubeark apply -f"https://raw.githubusercontent.com/iDevOpsio/kubeark/master/nginx.test.yaml" -e"port=80" -n${NAMESPACE}`

KubeARK does secret variables as well. If you have a secret deceleration in the remotely hosted YAML file that needs to be base64 encoded you simply specify the value with -se instead of -e.

#### Please also note the lack of space. This is important. There can be no space with the way version 1 is coded. This will be updated later.

# Clean UP
`kubectl delete deployment nginx-deployment -n ${NAMESPACE}`