Skip to content

Instantly share code, notes, and snippets.

View iam-veeramalla's full-sized avatar
🎯
Stay Hungry, Stay Foolish :)

Abhishek Veeramalla iam-veeramalla

🎯
Stay Hungry, Stay Foolish :)
View GitHub Profile
@iam-veeramalla
iam-veeramalla / aws_resource_list.sh
Created August 14, 2024 13:50
Script to automate the process of listing all the resources in an AWS account
#!/bin/bash
###############################################################################
# Author: Abhishek Veeramalla
# Version: v0.0.1
# Script to automate the process of listing all the resources in an AWS account
#
# Below are the services that are supported by this script:
# 1. EC2
@iam-veeramalla
iam-veeramalla / custom-gpt-llama-hyperstack
Last active August 20, 2024 10:39
Setup your own custom GPT using openwebui on Hyperstack
Step 1: Create a VM
- Create an instance on Hyperstack platform (They have a huge variety of GPU instances)
OS Image - Ubuntu Server 22.04 LTS R535 CUDA 12.2
Flavor Details - A100-80G-PCIe
Step 2: Run resources on the VM
- Install Ollama
Connect to VPN
# skip this. we don't depend on pipeline anymore
#Clone Pipelines Operator bundle source
#http://pkgs.devel.redhat.com/cgit/containers/openshift-pipelines-operator-prod-operator-metadata/
#Checkout the right branch e.g. "pipelines-1.3-rhel-8"
#Docker build the bundle
#Push the bundle
0. Install the latest "oc" openshift-client and opm tool
https://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/latest-4.7/
1. Login as kubeadmin
2. Connect to VPN
(skip) 2.1. Disable default operator indices
@iam-veeramalla
iam-veeramalla / RH-SSO_Installation_OpenShift_Templates
Created March 29, 2021 18:29
RH-SSO/Keycloak Installation using OpenShift Templates
Login as admin into your cluster
```
oc login -u kubeadmin -p password
```
Run the following commands to update the core set of Red Hat Single Sign-On 7.4.6.GA resources for OpenShift in the openshift project
```
for resource in sso74-image-stream.json \
sso74-https.json \
sso74-postgresql.json \
@iam-veeramalla
iam-veeramalla / iops and disk testing
Created February 10, 2021 14:31
iops and disk testing using fio
Install fio on your favorire linux flavor using apt, yum or whatever
Write Performance testing
sudo fio --name=randwrite --ioengine=libaio --iodepth=1 --rw=randwrite --bs=4k --direct=0 --size=512M --numjobs=2 --runtime=240 --group_reporting
Read Performance testing
sudo fio --name=randread --ioengine=libaio --iodepth=16 --rw=randread --bs=4k --direct=0 --size=512M --numjobs=4 --runtime=240 --group_reporting
Read Write Performance testing
sudo fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read_write.fio --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75
@iam-veeramalla
iam-veeramalla / kubernetes versioning in go.mod
Created February 4, 2021 10:03
Update Kubernetes version in go.mod
#!/bin/sh
set -euo pipefail
VERSION=${1#"v"}
if [ -z "$VERSION" ]; then
echo "Must specify version!"
exit 1
fi
MODS=($(
curl -sS https://raw.githubusercontent.com/kubernetes/kubernetes/v${VERSION}/go.mod |
@iam-veeramalla
iam-veeramalla / gitops-operator_build_process.txt
Last active January 22, 2021 06:56
gitops-operator build process
operator-sdk build docker.io/abhishekf5/gitops-operator:rhsso --image-builder docker
docker push docker.io/abhishekf5/gitops-operator:rhsso
Update csv file
1. Container image
2. Image
operator-sdk bundle create docker.io/abhishekf5/gitops-operator-bundle:rhsso
docker push docker.io/abhishekf5/gitops-operator-bundle:rhsso
git clone https://github.com/operator-framework/operator-registry.git
make build
/opt/workspace/operator-registry/bin/opm index add --bundles docker.io/abhishekf5/gitops-operator-bundle:rhsso --tag docker.io/abhishekf5/gitops-operator-index:rhsso --build-tool=docker
@iam-veeramalla
iam-veeramalla / operator-custom-build.txt
Last active January 11, 2021 17:04
Operator Build Steps using operator-sdk
1. Replace env variables in env.sh (Container image vars)
2. Run ./hack/build.sh
3. ./hack/push.sh
4. ./hack/bundle.sh
5. ./hack/registry.sh
6. Create catalog source with the image in the previous step
1. Modify to Argo CD Operator
1.1. defaults.go
1.1.1. replace redis image to
1.1.1.1. ArgoCDDefaultRedisImage = "registry.redhat.io/rhel8/redis-5"
1.1.1.2. ArgoCDDefaultRedisVersion = "sha256:85d7f044c718567ed9375e845299ee8aa0fef8f327262c444506c6c7c7a42eb0" // latest
1.2. deployment.go
1.2.1. Disable dex deployment/reconciliation
1.2.2. Change redis command args:
"redis-server",
"--save",