This file contains 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: v1 | |
kind: Namespace | |
metadata: | |
name: kubedoom | |
labels: | |
app: kubedoom | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: |
This file contains 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
Connect-CISServer -Server vcsa.primp-industries.local -User administrator@vsphere.local -Password VMware1! | |
# Name of your Content Library | |
$content_library_name = "TKG-Content-Library" | |
$contentLibraryService = Get-CisService com.vmware.content.library | |
$contentLibraryItemService = Get-CisService com.vmware.content.library.item | |
$subscribedLibraryItemService = Get-CisService com.vmware.content.library.subscribed_item | |
# Find Content Library matching name |
This file contains 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: vsan-object-viewer-fling | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: vsan-object-viewer-fling | |
template: |
This file contains 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
# vSphere QuickStart can not be re-enabled after workflow has been Abandoned https://vdc-download.vmware.com/vmwb-repository/dcr-public/c476b64b-c93c-4b21-9d76-be14da0148f9/04ca12ad-59b9-4e1c-8232-fd3d4276e52c/SDK/vsphere-ws/docs/ReferenceGuide/vim.ClusterComputeResource.html#AbandonHciWorkflow | |
# QuickStart state is stored in 'hci_workflow_state' property which is not configurable outside of messing w/VCDB | |
# The following is NOT recommended but for information/learning purposes | |
# 1. Retrieve the ID value from your vSphere Cluster MoRef (e.g. domain-c84065) | |
# 2. Connect to VCDB | |
# Query vSphere Cluster for QuickStart state 'hci_workflow_state' | |
select * from vpx_hci_config_info where cluster_id = '84065'; |
This file contains 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
#!/usr/bin/env bash | |
PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
# actual battery level | |
MOUSE_BATT=$(ioreg -c AppleDeviceManagementHIDEventService -r -l | grep -i mouse -A 20 | grep BatteryPercent | cut -d= -f2 | cut -d' ' -f2) | |
KEYBOARD_BATT=$(ioreg -c AppleDeviceManagementHIDEventService -r -l | grep -i keyboard -A 20 | grep BatteryPercent | cut -d= -f2 | cut -d' ' -f2) | |
COMPARE=${1:-20} | |
if (( MOUSE_BATT < COMPARE )); then |
This file contains 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
FROM mirror.gcr.io/library/ubuntu:bionic | |
ENV TERM linux | |
WORKDIR /root | |
ARG POWERCLI_VERSION="12.4.0.18633274" | |
RUN echo "/usr/bin/pwsh" >> /etc/shells && \ | |
echo "/bin/pwsh" >> /etc/shells && \ | |
apt update && \ |
This file contains 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
$volumes = Get-CnsVolume | |
$results = @() | |
foreach ($volume in $volumes) { | |
$entityDetails = $volume.ExtensionData.Metadata.EntityMetadata | where {$_.EntityType -eq "PERSISTENT_VOLUME_CLAIM"} | |
if($entityDetails) { | |
$tmp = [pscustomobject] @{ | |
VolumeName = $volume.name; | |
PVCName = $entityDetails.EntityName; | |
Namespace = $entityDetails.Namespace; | |
Datastore = $volume.datastore.name; |
This file contains 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
root@42294959c845d4be8507807dd2d100d0 [ ~ ]# k get clusterrole edit -o yaml | |
aggregationRule: | |
clusterRoleSelectors: | |
- matchLabels: | |
rbac.authorization.k8s.io/aggregate-to-edit: "true" | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
annotations: |
This file contains 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
root@42294959c845d4be8507807dd2d100d0 [ ~ ]# k get clusterrole view -o yaml | |
aggregationRule: | |
clusterRoleSelectors: | |
- matchLabels: | |
rbac.authorization.k8s.io/aggregate-to-view: "true" | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
annotations: |
This file contains 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
{ | |
"clusterstore": { | |
"cluster_agent": [ | |
"agent_settings" | |
] | |
}, | |
"esx": { | |
"assignhw": [ | |
"overrides" | |
], |
NewerOlder