This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |