This file contains hidden or 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: kubevirt.io/v1alpha3 | |
kind: VirtualMachine | |
metadata: | |
name: testvm | |
spec: | |
running: false | |
template: | |
metadata: | |
labels: | |
kubevirt.io/size: small |
This file contains hidden or 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: kubevirt.io/v1alpha3 | |
kind: VirtualMachine | |
metadata: | |
labels: | |
kubevirt.io/vm: vmurl | |
name: vmurl | |
spec: | |
dataVolumeTemplates: | |
- metadata: | |
name: vmurl |
This file contains hidden or 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
kubectl create ns fluxcd | |
GHUSER=ams0 | |
GHREPO=rancher-home | |
helm upgrade -i flux fluxcd/flux --wait \ | |
--namespace fluxcd \ | |
--set git.url="https://github.com/${GHUSER}/${GHREPO}.git" \ | |
--set git.readonly=true \ | |
--set sync.state=secret \ |
This file contains hidden or 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: sock-shop | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: carts-db | |
labels: |
This file contains hidden or 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
--- | |
# 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. |
This file contains hidden or 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: nginx | |
labels: | |
app: nginx | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
This file contains hidden or 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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: dbench-pv-claim | |
spec: | |
storageClassName: managed-premium | |
# storageClassName: gp2 | |
# storageClassName: local-storage | |
# storageClassName: ibmc-block-bronze | |
# storageClassName: ibmc-block-silver |
This file contains hidden or 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
#1.16.7 works, 1.17.3 no (AKS) | |
#helm3 | |
#nginx-ingress | |
helm repo add stable https://kubernetes-charts.storage.googleapis.com | |
kubectl create ns ingress | |
helm upgrade --install ingress stable/nginx-ingress \ |
This file contains hidden or 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
kind: ServiceAccount | |
apiVersion: v1 | |
metadata: | |
name: datadog-agent | |
namespace: datadog | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: datadog-agent |
This file contains hidden or 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
kubectl create ns ingress | |
#took forever to figure out | |
helm install nginx-ingress stable/nginx-ingress \ | |
--namespace ingress \ | |
--set controller.replicaCount=2 \ | |
--set controller.service.annotations."service\.beta\.kubernetes\.io\/azure-load-balancer-internal"="true" \ | |
--set controller.service.annotations."service\.beta\.kubernetes\.io\/azure-dns-label-name"="internal" \ | |
--set controller.metrics.enabled=true \ | |
--set controller.stats.enabled=true \ |