Skip to content

Some openshift example from master configuration over build to app deployment

Notifications You must be signed in to change notification settings

venmaniselvan/openshift-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenShift Examples

{% hint style="info" %} Work-in-progress: I'm playing with gitbook, it can be a bit broken... {% endhint %}

Run OpenShift on your Hetzer Server

{% embed url="https://github.com/RedHat-EMEA-SSA-Team/hetzner-ocp4" %}

Run OCP on your laptop

OpenShift 3

{% embed url="https://github.com/code-ready/crc" %}

OpenShift 4

oc cluster up --image=registry.access.redhat.com/openshift3/ose \
  --public-hostname=localhost

{% embed url="https://developers.redhat.com/products/cdk/overview" %}

Usefull commands

Easy install jq on RHEL

curl -O -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
chmod +x jq-linux64
sudo mv jq-linux64 /usr/local/bin/jq

jq examples

PVC CSV

oc get pvc --all-namespaces -o json | jq -r  ' .items[] |  [.metadata.namespace,.metadata.name,.status.capacity.storage|tostring]|@csv'

Print certificate from secret

oc get secret -n openshift-web-console webconsole-serving-cert -o json | jq -r '.data."tls.crt"' | base64 -d > foo.pem
# Can't use openssl x509, x509 do not support bundles
openssl crl2pkcs7 -nocrl -certfile foo.pem | openssl pkcs7 -print_certs  -noout

Check certificate from master-api

echo -n | openssl s_client -connect q.bohne.io:8443 -servername q.bohne.io 2>/dev/null | openssl x509 -noout -subject -issuer

OpenShift certificate overview:

find /etc/origin/master/ /etc/origin/node -name "*.crt" -printf '%p - ' -exec openssl x509 -noout -subject -in {} \;

Stargazers over time

Stargazers over time

About

Some openshift example from master configuration over build to app deployment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 33.3%
  • HCL 25.5%
  • Dockerfile 12.9%
  • Smarty 7.8%
  • Ruby 7.4%
  • Java 7.0%
  • Other 6.1%