Skip to content

Instantly share code, notes, and snippets.

View brandoncox's full-sized avatar

Brandon Cox brandoncox

  • Red Hat
  • District of Columbia
View GitHub Profile
@brandoncox
brandoncox / imageset.yaml
Last active May 31, 2024 01:50
OCP 4.15 ImageSetConfiguration
kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v1alpha2
storageConfig:
local:
path: /home/ec2-user/test/meta/
mirror:
platform:
channels:
- name: stable-4.15
type: ocp
@brandoncox
brandoncox / imageset-config-4.12.yaml
Last active April 3, 2024 01:46 — forked from kincl/imageset-config-4.12.yaml
oc-mirror imageset-config.yaml for OpenShift Virtualization and OpenShift Data Foundations
kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v1alpha2
storageConfig:
local:
path: ./
mirror:
platform:
channels:
brew install operator-sdk
mkdir sample && cd sample/
operator-sdk init --domain example.com --repo github.com/example/memcached-operator
operator-sdk create api --group cache --version v1alpha1 --kind Memcached --resource --controller
make generate
make manifests
make deploy
make install run
@brandoncox
brandoncox / build-deploy-push-ocp
Last active September 27, 2019 17:18
build/deploy/push OCP
docker build -t something/image .
docker tag something/image docker-registry.default.svc:5000/something/image
docker login -u <usr> -p $(oc whoami -t) docker-registry.default.svc:5000
docker push docker-registry.default.svc:5000/something/image
## IF CERT ERROR ON LOGIN
https://access.redhat.com/solutions/3654811
[Gist Page]
info.redhatgov.io/devsecops
[Lab Guide]
http://redhatgov.io/workshops/openshift_101_dcmetromap/
[OpenShift Console]
https://opm.redhatgov.io
[OpenShift and Terminal Login]
[Gist Page]
info.redhatgov.io/devsecops
[Lab Guide]
http://redhatgov.io/workshops/secure_software_factory/
[OpenShift Console]
https://karsun-devsecops.redhatgov.io
[OpenShift and Terminal Login]
@brandoncox
brandoncox / BLS-Workshop
Created January 18, 2017 17:23
Gist for BLS
Workshop URL: brandoncox.github.io/openshift-workshops
Workshop Environment: https://master.rhsademo.net
@brandoncox
brandoncox / openshift-workshop_20160912.md
Last active September 12, 2016 19:04
Openshift Workshop - 9/12/2016
@brandoncox
brandoncox / openshift-workshop_20160912.md
Last active September 12, 2016 13:29 — forked from dudash/openshift-workshop_20160818.md
Open Shift Workshop - August 18, 2016