❯ REDIS_HOSTS=$(oc -n iib-3scale-apim extract secret/backend-redis --keys=REDIS_STORAGE_SENTINEL_HOSTS --to=-)
# REDIS_STORAGE_SENTINEL_HOSTS
❯ echo $REDIS_HOSTS
redis://redis-storage-01.hm.example.com.br:26379,redis://redis-storage-02.hm.example.com.br:26379,redis://redis-storage-03.hm.example.com.br:26379
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
<?xml version="1.0" encoding="UTF-8"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<offline>false</offline> | |
<proxies> | |
<!-- ### configured http proxy ### --> | |
</proxies> |
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
--- | |
# https://access.redhat.com/solutions/3771241 | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: test | |
namespace: curl | |
spec: | |
replicas: 1 | |
selector: |
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
$ oc -n openshift-ingress exec $(oc get pod -n openshift-ingress -l ingresscontroller.operator.openshift.io/deployment-ingresscontroller=default -oname) -- haproxy -vv | |
Defaulted container "router" out of: router, logs | |
HA-Proxy version 2.2.19-7ea3822 2021/11/29 - https://haproxy.org/ | |
Status: long-term supported branch - will stop receiving fixes around Q2 2025. | |
Known bugs: http://www.haproxy.org/bugs/bugs-2.2.19.html | |
Running on: Linux 4.18.0-305.49.1.el8_4.x86_64 #1 SMP Wed May 11 09:47:48 EDT 2022 x86_64 | |
Build options : | |
TARGET = linux-glibc | |
CPU = generic |
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
$ oc get machinesets -n openshift-machine-api -o jsonpath='{"name"}{"\t"}{"REPLICAS"}{"\t"}{"CPU"}{"\t"}{"MEMORY"}{"\t"}{"DISK"}{"\n"}{range .items[*]}{"\n"}{.metadata.name}{"\t"}{.spec.replicas}{"\t"}{.spec.template.spec.providerSpec.value.numCPUs}{"\t"}{.spec.template.spec.providerSpec.value.memoryMiB}{"\t"}{.spec.template.spec.providerSpec.value.diskGiB}{end}{"\n"}' | |
NAME REPLICAS CPU MEMORY DISK | |
test-abc-a 8 8 16512 120 | |
test-abc-b 2 8 16512 120 | |
test-abc-c 15 8 16512 120 | |
test-abc-d 5 8 16512 120 |
- be logged in and has RBAC to edit
- Installation using default
- Optional
- Installed kubectl-neat to view configuration clean
$ export GRAFANA_NS=rfelix-grafana
$ oc project $GRAFANA_NS
$ oc get csv -n $GRAFANA_NS
APICAST_NS=rfelix-apicast-demo
ADMIN_NS=iib-3scale-apim
APICAST_NAME=demo-apicast-staging
ACCESS_TOKEN="676c89e4da74d32d211dbb5b12d18a1f4bc6ff796ef737f60a75219b45c91240"
BASE_URL=$(oc whoami --show-console | awk -F. '{sub($1 FS, ".")}1')
ADMIN_URL="3scale-admin${BASE_URL}"
APICAST_SECRET_NAME=apicast-secret