Skip to content

Instantly share code, notes, and snippets.

View vikram-raj's full-sized avatar
🎯
Focusing

Vikram Raj vikram-raj

🎯
Focusing
  • Red Hat
  • Bangalore
View GitHub Profile
#!/bin/bash
#
# Bash script that helps to get Web Terminal working on the localhost:9000
#
set -e
function parseArgs() {
if [ $# -eq 0 ]; then
help
apiVersion: shipwright.io/v1beta1
kind: Build
metadata:
creationTimestamp: '2024-08-27T12:27:20Z'
generation: 1
managedFields:
- apiVersion: shipwright.io/v1beta1
fieldsType: FieldsV1
fieldsV1:
'f:spec':
@vikram-raj
vikram-raj / installTektonResult.txt
Last active October 10, 2023 14:15
Install TektonResults on the Openshift cluster
1. openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=tekton-results-api-service.openshift-pipelines.svc.cluster.local" -addext "subjectAltName = DNS:tekton-results-api-service.openshift-pipelines.svc.cluster.local"
2. oc create secret tls -n openshift-pipelines tekton-results-tls --cert=cert.pem --key=key.pem
3. oc create secret generic tekton-results-postgres --namespace=openshift-pipelines --from-literal=POSTGRES_USER=result --from-literal=POSTGRES_PASSWORD=$(openssl rand -base64 20)
4. cat pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
apiVersion: tekton.dev/v1beta1
kind: ClusterTask
metadata:
name: func-buildpacks
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/categories: Image Build
tekton.dev/pipelines.minVersion: "0.17.0"
tekton.dev/tags: image-build
apiVersion: tekton.dev/v1beta1
kind: ClusterTask
metadata:
name: func-buildpacks
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/categories: Image Build
tekton.dev/pipelines.minVersion: "0.17.0"
tekton.dev/tags: image-build
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-monitoring-config
namespace: openshift-monitoring
data:
config.yaml: |
enableUserWorkload: true
---
apiVersion: v1
@vikram-raj
vikram-raj / Alerting rule without alert
Created October 6, 2022 15:08
Alerting rule without alert
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-monitoring-config
namespace: openshift-monitoring
data:
config.yaml: |
enableUserWorkload: true
---
apiVersion: v1
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-monitoring-config
namespace: openshift-monitoring
data:
config.yaml: |
enableUserWorkload: true
---
apiVersion: v1
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-monitoring-config
namespace: openshift-monitoring
data:
config.yaml: |
enableUserWorkload: true
---
apiVersion: v1
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-monitoring-config
namespace: openshift-monitoring
data:
config.yaml: |
techPreviewUserWorkload:
enabled: true
prometheusUserWorkload: