Skip to content

Instantly share code, notes, and snippets.

View ipam-web.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: ipam-web
name: ipam-web
spec:
replicas: 1
selector:
matchLabels:
View QNAP-recovery.md

Run mdadm - this command is used to manage and monitor software RAID devices in linux.

mdadm --detail /dev/md0 or md<N>

mount -t ext4 /dev/md0 /share/MD0_DATA

Check disks

mdadm --examine /dev/sdd3

View Prom-operator.md
View Prom-operator.md
View nsxt-uninstall.md

Manual removal of nsxt

esxcli software vib remove -n nsx-aggservice -n nsx-cli-libs -n nsx-common-libs -n nsx-da -n nsx-esx-datapath -n nsx-exporter -n nsx-host -n nsx-metrics-libs -n nsx-mpa -n nsx-nestdb-libs -n nsx-nestdb -n nsx-netcpa -n nsx-opsagent -n nsx-platform-client -n nsx-profiling-libs -n nsx-proxy -n nsx-python-gevent -n nsx-python-greenlet -n nsx-python-logging -n nsx-python-protobuf -n nsx-rpc-libs -n nsx-sfhc -n nsx-shared-libs -n nsxcli --no-live-install --force

reboot

net-dvs | grep com.vmware.common.alias

net-dvs -d hostswitch-overlay

View cafe-cert.yaml
apiVersion: v1
data:
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURIVENDQWdXZ0F3SUJBZ0lKQUpCV2lSMnBZbTQzTUEwR0NTcUdTSWIzRFFFQkN3VUFNRFF4RkRBU0JnTlYKQkFNTUMyTmhabVV1YldjdWJHRmlNUTh3RFFZRFZRUUtEQVpXVFhkaGNtVXhDekFKQmdOVkJBWVRBbFZUTUI0WApEVEU0TVRBeU5ERXpNRFF6TVZvWERUSTRNVEF5TVRFek1EUXpNVm93TkRFVU1CSUdBMVVFQXd3TFkyRm1aUzV0Clp5NXNZV0l4RHpBTkJnTlZCQW9NQmxaTmQyRnlaVEVMTUFrR0ExVUVCaE1DVlZNd2dnRWlNQTBHQ1NxR1NJYjMKRFFFQkFRVUFBNElCRHdBd2dnRUtBb0lCQVFDNXJEM2lPS2w2MHdPL09qd2ZUZ0NxSEJoeWxNd1NMU2RIbWQzVQpGamladUFvZU1OcXhQMDZhMmZzWHQ1ZVZKYzZwNno3K3FORmQ4aVlPTnYxeDRvNWt6TTlCNTVjSnRRNTIzVFc3CkFtSDBrem9KbFZ6SGlvWFllKzlMQTd6eXR1SEJnMnp6L25raGlsYXRJUE9hL2swTzJ4UDhHMnYyaHlVWDRFT2YKajBReWU0T3ZiK2dLWFhLY29YZDlBOXFYcjZSaDJld1pHMHhRbi9waWhYMGNtR3JqUS94MkZDRTU5ckhESGp0cQpmTWZoTlo1N0ZueWU5SkowcndOZFhLS0MyaU15T2RQMVI4cWNrTDU4Tk1DbTFRRmEyMHRaNHlzN2Fmako4Y0o4ClJIbnJTcWdmTTJ4cU1mOVd5WDF0QWl0eDkvNEh1TDg2MjlIY1VBTXgxQVNFdVdMUEFnTUJBQUdqTWpBd01Ba0cKQTFVZEV3UUNNQUF3Q3dZRFZSMFBCQVFEQWdYZ01CWUdBMVVkRVFRUE1BMkNDMk5oWm1VdWJXY3ViR0ZpTUEwRwpD
View cafe-ingress.yaml
cat cafe-ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: cafe-ingress
spec:
rules:
- host: cafe.mg.lab
http:
View photon-vpod.md

Install Photon Platform

*Open Putty

  • Scroll down to photon-installer.corp.local
  • Double-click to ssh into Photon Installer VM
    • Password is changeme
  • Run the command photon-setup platform install -config install.yaml
View Useful VIC
VIC cliff notes
Environment Overview
network vlan cidr gw
vic-bridge 70 n/a n/a
vic-public 71 192.168.71.0/24 192.168.71.1
vic-container 73 192.168.73.0/24 192.168.73.1
vic-mgmt 74 192.168.74.0/24 192.168.74.1
View docker binding to ipv6.md

sysctl -p

sysctl net.ipv6.conf.all.forwarding=1

sysctl net.ipv6.bindv6only=0