4.8 +
# oc patch ingresscontroller default -n openshift-ingress-operator -p '[{"op": "add", "path": "/spec/tuningOptions/threadCount", "value" : 8}]' --type=json
4.7 and below
4.8 +
# oc patch ingresscontroller default -n openshift-ingress-operator -p '[{"op": "add", "path": "/spec/tuningOptions/threadCount", "value" : 8}]' --type=json
4.7 and below
#/bin/bash | |
#USAGE | |
# `ocpkg 4.8.34`` or with out y release and latest will be chosen `ocpkg 4.8`` | |
DEPENDENCIES=("oc" "jq" "skopeo") | |
IFS=. read -r Ver4 VerX VerY <<< ${1} | |
STREAM=fast | |
CHANNEL="${STREAM}-4.${VerX}" |
kind: List | |
apiVersion: v1 | |
items: | |
- apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
name: hello-openshift | |
app: hello-openshift | |
name: hello-openshift |
apiVersion: operator.openshift.io/v1 | |
kind: IngressController | |
metadata: | |
name: default | |
namespace: openshift-ingress-operator | |
spec: | |
replicas: 3 | |
endpointPublishingStrategy: | |
type: HostNetwork | |
nodePlacement: |
#!/bin/bash | |
set -eo pipefail | |
trap cleanup EXIT | |
# Defaults | |
REGISTRY=registry.redhat.io | |
IMAGE=rhel8/support-tools | |
TOOLBOX_NAME=toolbox-"${USER}" | |
TOOLBOXRC="${HOME}"/.toolboxrc |
{ | |
"kind": "Pod", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "hello-openshift", | |
"creationTimestamp": null, | |
"labels": { | |
"app": "hello-openshift" | |
} |
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
#!/bin/bash | |
# Requires JQ installed. | |
# curl -sH 'Accept: application/json' https://api.openshift.com/api/upgrades_info/v1/graph?channel=stable-4.1&arch=amd64 | jq -S '.nodes | sort_by(.version)' | |
PS3='Please enter your choice: ' | |
# The names of the channels currently need to be hardcoded as there is no way to get a list of what current channels are avaiable. | |
# https://github.com/openshift/cincinnati/issues/171#issuecomment-555626636 |
{{/* | |
haproxy-config.cfg: contains the main config with helper backends that are used to terminate | |
encryption before finally sending to a host_be which is the backend that is the final | |
backend for a route and contains all the endpoints for the service | |
*/}} | |
{{- define "/var/lib/haproxy/conf/haproxy.config" }} | |
{{- $workingDir := .WorkingDir }} | |
{{- $defaultDestinationCA := .DefaultDestinationCA }} | |
{{- $dynamicConfigManager := .DynamicConfigManager }} | |
{{- $router_ip_v4_v6_mode := env "ROUTER_IP_V4_V6_MODE" "v4" }} |