Last active
December 4, 2021 13:46
-
-
Save creed30/1109ac56f30920b1d5d2a0b2e277bca0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###Creating a template | |
oc login <YOUR_MINISHIFT_URL> | |
oc login -u system:admin | |
oc create -f <YOUR_YAML_FILE>.yaml -n openshift | |
###View/Edit template | |
oc edit template <YOUR_TEMPLATE> -n openshift | |
###View all templates available | |
oc get templates -n openshift | |
###https://docs.openshift.org/latest/dev_guide/templates.html | |
###Kafka Templates - https://github.com/spring-cloud/spring-cloud-dataflow-server-kubernetes/tree/master/src/etc/kubernetes | |
###Zookeeper Template - https://github.com/openshift/origin/blob/master/examples/zookeeper/template.json | |
###Minishift | |
minishift ip | |
### Default port :8443 | |
### Installation link https://developers.redhat.com/products/devsuite/download/ | |
### helpful functions to add to rc | |
function ocdelalldev(){ | |
oc delete secrets,jobs,configmaps,all -l "release=$1" --namespace <YOUR_DEV_NAMESPACE_HERE> | |
} | |
function oclogsdev(){ | |
oc logs $1 --namespace <YOUR_NAMESPACE_HERE> | |
} | |
function occleanbuilds(){ | |
kubectl delete pod --namespace <YOUR_BUILD_NAMESPACE_HERE> $(kubectl get pods -a --namespace <YOUR_BUILD_NAMESPACE_HERE>| grep Completed | awk '{print $1}') | |
kubectl delete pod --namespace <YOUR_BUILD_NAMESPACE_HERE> $(kubectl get pods -a --namespace <YOUR_BUILD_NAMESPACE_HERE>| grep Error | awk '{print $1}') | |
} | |
function occleanfinished(){ | |
kubectl delete pod --namespace <YOUR_DEV_NAMESPACE_HERE> $(kubectl get pods -a --namespace <YOUR_DEV_NAMESPACE_HERE>| grep Completed | awk '{print $1}') | |
kubectl delete pod --namespace <YOUR_DEV_NAMESPACE_HERE> $(kubectl get pods -a --namespace <YOUR_DEV_NAMESPACE_HERE>| grep Error | awk '{print $1}') | |
} | |
helm install pipeline/ --namespace <YOUR_NAMESPACE_HERE> --debug | |
https://docs.openshift.com/container-platform/3.5/dev_guide/templates.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment