Skip to content

Instantly share code, notes, and snippets.

apiVersion: data.packaging.carvel.dev/v1alpha1
kind: Package
metadata:
name: vsphere-csi.tanzu.vmware.com.2.4.0
spec:
refName: vsphere-csi.tanzu.vmware.com
version: 2.4.0
releaseNotes: "vsphere-csi 2.4.0 https://github.com/kubernetes-sigs/vsphere-csi-driver/releases/tag/v2.4.0"
licenses:
- "Apache 2.0"
apiVersion: v1
kind: Pod
metadata:
name: iperf
spec:
containers:
- name: iperf
image: nginx
ports:
- name: web
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
#!/bin/bash
# This script using tc (`man tc`) to shape egress traffic from a host to specific
# IP CIDR(s).
# RATES Bandwidths or rates. These parameters accept a floating point
# number, possibly followed by either a unit (both SI and IEC units supported),
# or a float followed by a '%' character to specify the rate as a percentage of
# the device's speed (e.g. 5%, 99.5%). Warning: specifying the rate as
# a percentage means a fraction of the current speed; if the speed changes, the
---
# Creates service account, set to kube-system below. Will need to be created
# per-namespace if RoleBinding appraoch is used (see below)
apiVersion: v1
kind: ServiceAccount
metadata:
name: jenkins
namespace: kube-system
---
#!/bin/bash
# This script using tc (`man tc`) to shape egress traffic from a host to specific
# IP CIDR(s).
# RATES Bandwidths or rates. These parameters accept a floating point
# number, possibly followed by either a unit (both SI and IEC units supported),
# or a float followed by a '%' character to specify the rate as a percentage of
# the device's speed (e.g. 5%, 99.5%). Warning: specifying the rate as
# a percentage means a fraction of the current speed; if the speed changes, the
client_delay_pools 1
client_delay_access 1 allow all
#client_delay_parameters 1 64000/64000 # 512 kbits == 64 kbytes per second
client_delay_parameters 1 1000 1000
delay_pools 1
delay_class 1 1
delay_access 1 allow all
delay_parameters 1 64000/64000 # 512 kbits == 64 kbytes per second
@joshrosso
joshrosso / rb.yaml
Created June 19, 2019 23:55
rb.yaml
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: psp-kube-system
namespace: kube-system
subjects:
- kind: Group
name: system:serviceaccounts
# allows kubelet to communicate mirror pods to the API server.
# Calico Version v3.5.3
# https://docs.projectcalico.org/v3.5/releases#v3.5.3
# This manifest includes the following component versions:
# calico/node:v3.5.3
# calico/cni:v3.5.3
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata: