Setup
bin/kafka-topics.sh \
--zookeeper zookeeper.example.com:2181 \
--create \| function tprint (tbl, indent) | |
| if not indent then indent = 0 end | |
| local toprint = string.rep(" ", indent) .. "{\r\n" | |
| indent = indent + 2 | |
| for k, v in pairs(tbl) do | |
| toprint = toprint .. string.rep(" ", indent) | |
| if (type(k) == "number") then | |
| toprint = toprint .. "[" .. k .. "] : " | |
| elseif (type(k) == "string") then | |
| toprint = toprint .. k .. ": " |
| { | |
| "openapi": "3.0.2", | |
| "info": { | |
| "title": "Users API", | |
| "version": "1.0.0", | |
| "description": "Users API Specification" | |
| }, | |
| "paths": { | |
| "/orders-api/orders": { | |
| "summary": "Path used to manage the list of orders.", |
bin/kafka-topics.sh --zookeeper localhost:2181 --list
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic
bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000
... wait a minute ...
| { | |
| "host": "api-3scale-apicast-staging.apps.latam-559c.open.redhat.com", | |
| "next": { | |
| "current": { | |
| "configuration": { | |
| "services": { | |
| "hasht": {}, | |
| "node2key": {}, | |
| "key2node": {} | |
| }, |
| "parameters": [ | |
| { | |
| "name": "user_key", | |
| "description": "Your access API Key", | |
| "type": "string", | |
| "in": "query", | |
| "x-data-threescale-name": "user_keys", | |
| "required": true | |
| }, | |
| // ... |
| # @author Rodrigo Ramalho - [email protected] / [email protected] | |
| # This script creates: | |
| # - nfs directory | |
| # - persistence volume on openshift | |
| # - persistence claim on openshift | |
| # Parameters: | |
| # 1. Directory to be create (every names, pv, pvc, nfs will be based on this name) | |
| # 2. Size in Gb | |
| # 3. Project in which pvc will be created | |
| # Usage: oc-nfs-volume jenkis-storage 5 desenvolvimento claim-name |
| # From your host, SSH as ec2-user into the bastion server | |
| # ssh -i /path/ocpkey.pem \ | |
| # [email protected] | |
| # Become root on the bastion server | |
| #sudo -i | |
| oc get pods --all-namespaces | grep Crash | awk '{ printf ("oc delete pod %5s\t -n %s\n", $2, $1) }' | while read -r line ; do $line; done |