Skip to content

Instantly share code, notes, and snippets.

View ArangoGutierrez's full-sized avatar
Coffee engineer

Carlos Eduardo Arango Gutierrez ArangoGutierrez

Coffee engineer
View GitHub Profile
## OpenShift4 pull-secret:
1. Download your pull-secret from [openshift.com/try](https://cloud.redhat.com/openshift/install/aws/installer-provisioned)
- click on “Download Pull Secret”. Save it somewhere, e.g. ~/some-dir/pull-secret
2. Add the apps.ci auth to pull-secret! _internal OpenShift developers only_
- Obtain an API token by visiting https://oauth-openshift.apps.ci.l2s4.p1.openshiftapps.com/oauth/token/request
copy the oc login cmd and paste in terminal to login to the ci cluster, then run this:
- `$ oc registry login --to ~/some-dir/pull-secret`
This will append the auth from registry.ci.openshift.org to your cloud.openshift.com pull-secret but it will also
make the pull-secret multi-line.
@ArangoGutierrez
ArangoGutierrez / gpu-burst.sh
Last active July 28, 2020 21:52
Automaticaly create a GPU machine on a OpenShift AWS Cluster
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
if test ! -f "${KUBECONFIG}"
then
echo "No kubeconfig, can not continue."
exit 0
@ArangoGutierrez
ArangoGutierrez / kops_101.sh
Last active May 27, 2021 15:01
A guided script to deploy a vanilla kubernetes cluster using https://github.com/kubernetes/kops , Documentation can be found at https://kops.sigs.k8s.io/getting_started/aws/
#!/bin/bash
set -o xtrace
# Documentation can be found at https://kops.sigs.k8s.io/getting_started/aws/
# configure the aws client to use your new IAM user run
# aws configure # Use your new access and secret key here
# aws iam list-users # you should see a list of all your IAM users here
# Prepare local environment