Skip to content

Instantly share code, notes, and snippets.

kubectl create -f quota.yml
kubectl describe quota
apiVersion: v1
kind: LimitRange
metadata:
name: mem-min-max-demo-lr
spec:
limits:
- max:
memory: 1Gi
min:
memory: 500Mi
#!/bin/bash
# printing version of the plugin
if [[ "$1" == "version" ]]
then
echo "kubectl fpods version 0.1.0"
exit 0
fi
kubectl get pods --all-namespaces --field-selector=status.phase!=Running
sudo chmod +x ./kubectl-fpod # making the file executable
sudo mv ./kubectl-fpod /usr/local/bin # moving to the PATH
# istioctl istio-operator dump manifests
istioctl operator dump [--hub(optional)] > operator-generated-manifest.yaml
# generate the manifest before installing Istio
istioctl manifest generate > istio-generated-manifest.yaml
# apply generated manifests
kubectl apply -f operator-generated-manifest.yaml
kubectl apply -f istio-generated-manifest.yaml
# istioctl istio-operator dump manifests
istioctl operator dump [--hub(optional)] > operator-generated-manifest.yaml
# generate the manifest before installing Istio
istioctl manifest generate > istio-generated-manifest.yaml
# apply generated manifests
kubectl apply -f operator-generated-manifest.yaml
kubectl apply -f istio-generated-manifest.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- operator-generated-manifest.yaml
- istio-generated-manifest.yaml
images:
- name: docker.io/istio/operator
newName: private-repo/istio/operator
newTag: 1.6.5
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
namespace: istio-system
name: demo-istiocontrolplane
spec:
profile: demo
components:
egressGateways:
- name: istio-egressgateway