Skip to content

Instantly share code, notes, and snippets.

View riprasad's full-sized avatar
🏠
Working from home

Rishab Prasad riprasad

🏠
Working from home
View GitHub Profile
---
kind: Secret
apiVersion: v1
metadata:
name: collector-config
labels:
app: collector
data:
CONFIG: >-
'<base64 encoding of the config.yaml file>'
collectors:
- name: http1
type: http
properties:
isDebug: true
port: 16500
serverUrl: https://redhat-poc.sealights.co
target:
name: http
type: http
STEP 1/9: FROM registry.redhat.io/ubi9/python-39
STEP 2/9: WORKDIR /opt/app-root/src
--> Using cache cfe7a3d9968a07d4c868eefcc92cbddbb90427b69ec8bc33f6f398cf1952b308
--> cfe7a3d9968a
STEP 3/9: ENV SOURCE_CODE=.
--> Using cache 26b15bcbff792e38e2a0b3c5f6e1fdc094a5d4cdf9db13fb4541df18c4cc5af2
--> 26b15bcbff79
STEP 4/9: USER root
--> Using cache c331a869adf5fb21de8c082acf6fbee8afb035815a8587d79b77d481fe8a631b
--> c331a869adf5
@riprasad
riprasad / dump-restore
Last active September 1, 2023 09:05 — forked from ricjcosme/dump-restore
DUMP / RESTORE PostgreSQL Kubernetes
DUMP
// pod-name name of the postgres pod
// postgres-user database user that is able to access the database
// database-name name of the database
kubectl exec [pod-name] -- bash -c "pg_dump -U [postgres-user] [database-name]" > database.sql
RESTORE
// pod-name name of the postgres pod
// postgres-user database user that is able to access the database
// database-name name of the database
@riprasad
riprasad / increase_root_fedora.md
Last active January 5, 2023 08:30 — forked from 181192/increase_root_fedora.md
How to increase the root partition size on Fedora

How to increase the root partition size on Fedora

Boot up with an Fedora Live USB stick.

  1. Run vgs to check if there's any space:
$ sudo vgs
  VG     #PV #LV #SN Attr   VSize    VFree
  fedora_dhcp35--100   1   3   0 wz--n- <237.28g    0 
# This is a Dockerfile for the service-registry-infinispan:1.1.0 image.
## START target image service-registry-infinispan:1.1.0
## \
FROM registry.redhat.io/ubi8/openjdk-11:latest
USER root
###### START module 'install-artifact:1.0'
{
"text":"\n*API Designer - Operate First Deployment Alert*\n\nComponent: API Designer POC \nRoute: http://api-designer-poc-api-designer.apps.smaug.na.operate-first.cloud/ \nConsole URL: https://console-openshift-console.apps.smaug.na.operate-first.cloud/k8s/cluster/projects/api-designer/ \n"
}
#!productVersion=0.0.0
#!milestone=CR1
#!projectVersion=0.1.8.Final
#!scmRevision=0.1.8.Final
#!projectName=apicurio-common-rest-client
#!productName=Red Hat OpenShift Service Registry
#!abbreviation=RHOSR
#!groupConfigName={{projectName}}-{{projectVersion}}
@riprasad
riprasad / sftp.yaml
Created November 2, 2021 19:58 — forked from jujhars13/sftp.yaml
kubernetes pod example for atmoz/sftp
apiVersion: v1
kind: Namespace
metadata:
name: sftp
---
kind: Service
apiVersion: v1
metadata:
#oc apply -f atmoz-sftp.yaml
kind: PersistentVolume
apiVersion: v1
metadata:
name: atmoz-pv
labels:
app: atmoz
spec:
storageClassName: ""