gh auth login
curl -XGET --insecure -u 'admin:password' 'https://app-opensearch.domain.net:9200'
Indices
curl -XGET --insecure -u 'admin:admin' 'https://app-opensearch.domain.net:9200/_cat/indices'
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: test-client | |
namespace: test-client | |
spec: | |
selector: | |
matchLabels: | |
app: test-client |
Set version
kubectl_version='1.29.2'
Install
curl -LO https://dl.k8s.io/v${kubectl_version}/bin/linux/amd64/kubectl
chmod +x kubectl
sudo mv ./kubectl /usr/bin/kubectl
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' FILENAME
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
import os, sys, time | |
pid = os.fork() | |
if pid == 0 : | |
print("in child") | |
sys.exit(0) | |
else : | |
print("in parent") | |
time.sleep(90) |
git ls-files '*/<FILENAME>'
git ls-files '**/argo-admin-clusterrole.yaml'
git ls-files '*argo-admin-clusterrole.yaml'
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic --from-beginning
In kafka container: cd /opt/bitnami/kafka/bin
NewerOlder