Skip to content

Instantly share code, notes, and snippets.

View ZhaoTzuHsien's full-sized avatar
💭
I may be slow to respond.

趙子賢 ZhaoTzuHsien

💭
I may be slow to respond.
  • Kaohsiung Medical University
  • Kaohsiung City, ROC(Taiwan)
View GitHub Profile
@ZhaoTzuHsien
ZhaoTzuHsien / ip-address-pool.yaml
Created September 1, 2022 13:24
Metallb IP address pool
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: bofit
namespace: metallb-system
spec:
addresses:
- <Instance IP 1>/32
- <Instance IP 2>/32
- <Instance IP 3>/32
@ZhaoTzuHsien
ZhaoTzuHsien / values.yaml
Created September 1, 2022 13:17
metallb values
speaker:
enabled: false
@ZhaoTzuHsien
ZhaoTzuHsien / default-bgp-config.yaml
Last active September 1, 2022 13:04
Default BGPConfiguration
apiVersion: crd.projectcalico.org/v1
kind: BGPConfiguration
metadata:
name: default
spec:
serviceLoadBalancerIPs:
- cidr: <Instance IP 1>/32
- cidr: <Instance IP 2>/32
- cidr: <Instance IP 3>/32
@ZhaoTzuHsien
ZhaoTzuHsien / vultr-bgp-peer.yaml
Last active September 1, 2022 10:14
Vultr BGP peer
apiVersion: crd.projectcalico.org/v1
kind: BGPPeer
metadata:
name: vultr
spec:
peerIP: 169.254.169.254
asNumber: 64515
@ZhaoTzuHsien
ZhaoTzuHsien / problem.svg
Last active September 1, 2022 09:39
Metallb & Calico problem
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ZhaoTzuHsien
ZhaoTzuHsien / get.ps1
Created October 27, 2020 07:52
Get Product Code
$wmipackages = Get-WmiObject -Class win32_product
$wmiproperties = gwmi -Query "SELECT ProductCode,Value FROM Win32_Property WHERE Property='UpgradeCode'"
$packageinfo = New-Object System.Data.Datatable
[void]$packageinfo.Columns.Add("Name")
[void]$packageinfo.Columns.Add("ProductCode")
[void]$packageinfo.Columns.Add("UpgradeCode")
foreach ($package in $wmipackages)
{
$foundupgradecode = $false # Assume no upgrade code is found