cat <<EOF | oc apply -f -
---
apiVersion: v1
kind: Pod
metadata:
name: curl-pod
labels:
app: support
This file contains hidden or 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
## Reference: https://github.com/jovemfelix/sno-minio-deployment | |
--- | |
#NAME: minio | |
#LAST DEPLOYED: Thu Aug 25 08:55:33 2022 | |
#NAMESPACE: minio | |
#STATUS: pending-install | |
#REVISION: 1 | |
#TEST SUITE: None | |
#HOOKS: | |
#MANIFEST: |
$ oc project openshift-ingress
$ statsPassword=$(oc extract secret/router-stats-default --keys=statsPassword --to=-)
$ statsUsername=$(oc extract secret/router-stats-default --keys=statsUsername --to=-)
$ oc get pods
$ oc exec -it pod/router-default-577b87cd94-jv5s7 -- curl -s -u ${statsUsername}:${statsPassword} 127.0.0.1:1936/metrics | grep haproxy
This file contains hidden or 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
apiVersion: integreatly.org/v1alpha1 | |
kind: GrafanaDashboard | |
metadata: | |
name: dashboard-ingress | |
labels: | |
app: 3scale-monitoring. # adequar para o cenário | |
spec: | |
json: | |
"" | |
configMapRef: |
This file contains hidden or 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
ORIGINAL_FILE=$1 | |
echo cleaning $1 | |
yq eval 'del(.metadata.annotations."kubectl.kubernetes.io/last-applied-configuration")' -i $ORIGINAL_FILE | |
yq eval 'del(.metadata.creationTimestamp)' -i $ORIGINAL_FILE | |
yq eval 'del(.metadata.generation)' -i $ORIGINAL_FILE | |
yq eval 'del(.metadata.managedFields)' -i $ORIGINAL_FILE | |
yq eval 'del(.metadata.ownerReferences)' -i $ORIGINAL_FILE | |
yq eval 'del(.metadata.resourceVersion)' -i $ORIGINAL_FILE |
This file contains hidden or 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
# version used | |
$ yq -V | |
yq version 4.9.6 | |
$ cp original-file.yaml original-file.orig.yaml | |
# this for single file | |
$ yq eval '.metadata.annotations."kubectl.kubernetes.io/last-applied-configuration"' -i original-file.yaml | |
$ yq eval 'del(.metadata.creationTimestamp)' -i original-file.yaml | |
$ yq eval 'del(.metadata.generation)' -i original-file.yaml |
export NS=benchmark-operator
export ES_SERVER=${ES_SERVER:-https://search-perfscale-dev-chmf5l4sh66lvxbnadi4bznl3a.us-west-2.es.amazonaws.com:443}