Update your Mac to latest version of macOS.
xcode-select --install
# Split all objects and pass them to each filter below | |
# Create/Delete Namespace | |
(select(.verb == "create" and .objectRef.resource=="namespaces") | | |
"[" + .stageTimestamp + "] " + "Namespace Created: name=" + .objectRef.name), | |
(select(.verb == "delete" and .objectRef.resource=="namespaces") | | |
"[" + .stageTimestamp + "] " + "Namespace Deleted: name=" + .objectRef.name), | |
# Create/Delete Deployment |
cat > topic.txt | |
addTowhiteList | |
agentCheckCaseRouter | |
agentCheckKYCRouter | |
agentCMRouter | |
agentCreateCase | |
agentFetchKYC | |
agentInformKYC | |
cat > delete-topic.sh |
Ansible groupvar has two groups - all and others(ungrouped) | |
[all] | |
k8s-master ansible_host=172.26.146.181 ip=192.168.1.10 ansible_port=922 ansible_user=amulya | |
k8s-node ansible_host=172.26.146.184 ip=192.168.1.11 ansible_port=922 ansible_user=amulya | |
[kube-master] | |
k8s-master | |
[kube-node] |
##################### ElasticSearch Configuration Example ##################### | |
# This file contains an overview of various configuration settings, | |
# targeted at operations staff. Application developers should | |
# consult the guide at <http://elasticsearch.org/guide>. | |
# | |
# The installation procedure is covered at | |
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>. | |
# | |
# ElasticSearch comes with reasonable defaults for most settings, |
Additionally there's a short howto delete one of master nodes | |
i.e. we want to delete node1: | |
# make node unschedulable | |
kubectl delete node node1 | |
# get etcd node id which we want to remove | |
# we can do it from another node in case of node1 is down | |
docker exec -ti etcd1 etcdctl \ | |
--cert-file /etc/ssl/etcd/ssl/member-node1.pem \ |
# Install package | |
apk update | |
apk add tzdata openntpd | |
# Check timezone info | |
timedatectl list-timezones | grep Asia/Kolkata | |
# Set Timezone | |
export TZ=Asia/Kolkata | |
# In sync NTP | |
hwclock -s |
#!/usr/bin/env bash | |
# NOTE: This will let anyone who belongs to the 'pcap' group | |
# execute 'tcpdump' | |
# NOTE2: User running the script MUST be a sudoer. It is | |
# convenient to be able to sudo without a password. | |
sudo groupadd pcap | |
sudo usermod -a -G pcap $USER |
# update python | |
yum -y install python3 | |
ln -fs /usr/bin/python3 /usr/bin/python | |
python -V | |
# update pip | |
whereis pip | |
rm -rf /usr/bin/pip | |
ln -s /usr/bin/pip3 /usr/bin/pip | |
pip --version |
# Convert CRT to PEM | |
openssl x509 -in cert.crt -out cert.pem | |
# Convert CER to PEM | |
openssl x509 -in cert.cer -out cert.pem | |
# Convert DER to PEM | |
openssl x509 -in cert.der -out cert.pem |