Skip to content

Instantly share code, notes, and snippets.

View dlbewley's full-sized avatar
📺

Dale Bewley dlbewley

📺
View GitHub Profile
@ruo91
ruo91 / ocp4-aws-permission-for-iam-user.json
Created June 5, 2021 05:58
OpenShift v4x - Required AWS permissions for the IAM user
/*
- RefURL
https://docs.openshift.com/container-platform/4.7/installing/installing_aws/installing-aws-account.html#installation-aws-permissions_installing-aws-account
- Required EC2 permissions for installation
file: ocp4-ec2-permissions.json
*/
{
"Version": "2012-10-17",
"Statement": [
@therevoman
therevoman / ocp4-hacks.md
Last active April 18, 2024 15:32
OpenShift 4 Hacks

My list of OpenShift 4 hacks

How do I list all resources in a namespace (no, really ALL of them)

adapted from https://access.redhat.com/solutions/4165791

$ oc api-resources --verbs=list --namespaced -o name | xargs  -I {} bash -c "oc get --show-kind --ignore-not-found -n openshift-storage {}"

a little faster

@dmc5179
dmc5179 / etcd-backup-s3.yaml
Created March 25, 2021 03:01
etcd backup kubecron to S3
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: etcd-backup
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
@fnky
fnky / ANSI.md
Last active November 19, 2024 18:05
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@rafaeltuelho
rafaeltuelho / openshift-cheatsheet.md
Last active October 7, 2024 05:41
My Openshift Cheatsheet

My Openshift Cheatsheet

Project Quotes, Limits and Templates

  • Cluster Quota
oc create clusterquota env-qa \
    --project-label-selector environment=qa \
    --hard pods=10,services=5
    
oc create clusterquota user-qa \
@Phlogi
Phlogi / CrashPlan_remote.sh
Last active May 23, 2016 06:30
crashplan remote script for OSX
#!/bin/sh
# Adapt the two first variables to your environment
# Requirements:
# -the user below can connect to the IP without password (copy ssh key)
# changes on server: ...share/crashplan/conf/my.service.xml:
# <serviceUIConfig>
# <serviceHost>0.0.0.0</serviceHost>
#
CPSSHUSER='root'