Skip to content

Instantly share code, notes, and snippets.

View anthonyspiteri's full-sized avatar

Anthony Spiteri anthonyspiteri

View GitHub Profile
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kubeapps-clusterrole
namespace: kubeapps
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kubeapps-clusterrole
subjects:
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kubeapps-clusterrole
rules:
- apiGroups:
- policy
resources:
- podsecuritypolicies
verbs:
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: kubeapps-psp
spec:
privileged: true
seLinux:
rule: RunAsAny
supplementalGroups:
rule: RunAsAny
<#
.SYNOPSIS
Get-BackupProtectionSingleTenant.ps1
.DESCRIPTION
Allows you to select Backup Protection Tenant account and return total storage in GB and cost of storage to the provider and to the client.
Folder Calculation code taken from https://www.gngrninja.com/script-ninja/2016/5/24/powershell-calculating-folder-sizes
$registryPath = "HKLM:\SOFTWARE\Veeam\Veeam Backup and Replication"
$name = "CloudMaintenanceModeMessage"
clear
write-host
$existing = Get-ItemProperty "$registryPath"
$existingkey = $existing.CloudMaintenanceModeMessage
write-host "Existing Maintenance Mode Message (if blank default is set):" $existingkey
write-host
@anthonyspiteri
anthonyspiteri / cassandra.sh
Last active September 13, 2023 04:06 — forked from ixaxaar/cassandra.sh
Simple bash script to install cassandra cluster
#!/usr/bin/env bash
# A script to install cassandra modified by Anthony Spiteri for vCloud Director Metric Database installs
# ADD SEE NODES HERE - FOR SUPPORTED INSTALL 4 NODES WITH 2 SEEDS REQUIRED
SEEDS[0]='172.17.0.10'
#SEEDS[1]=172.17.0.11'
#SEEDS[2]=172.17.0.12'
#SEEDS[3]=172.17.0.13'