Skip to content

Instantly share code, notes, and snippets.

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: ipam-web
name: ipam-web
spec:
replicas: 1
selector:
matchLabels:

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

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

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

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
@nvpnathan
nvpnathan / Useful VIC
Last active September 26, 2019 20:33
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

sysctl -p

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

sysctl net.ipv6.bindv6only=0

Image for Prep Photon OS for Photon Platform

Change password to never expire

chage –I -1 –m 0 –M 99999 –E -1 root

Update repository sources

tdnf update