Skip to content

Instantly share code, notes, and snippets.

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
namespace: istio-system
name: demo-istiocontrolplane
spec:
profile: demo
components:
egressGateways:
- name: istio-egressgateway
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
# 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
sudo chmod +x ./kubectl-fpod # making the file executable
sudo mv ./kubectl-fpod /usr/local/bin # moving to the PATH
#!/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
apiVersion: v1
kind: LimitRange
metadata:
name: mem-min-max-demo-lr
spec:
limits:
- max:
memory: 1Gi
min:
memory: 500Mi
kubectl create -f quota.yml
kubectl describe quota
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ResourceQuota
metadata:
name: pods-high
spec:
hard:
cpu: "1000"

We together covered a handful of concepts in the last three posts about knowing, conceptualizing, and understanding pod eviction. As I said, in my first post that it's a complicated topic, and I would like to suggest that if you are reading this post first, please read all the below-listed posts before reading this one.

Although I highly recommend to go through the posts as mentioned earlier but still, for the time-sake or as a refresher, we are going to revisit the concepts quickly; please feel free to skip the section if you already went over the posts or have a fai