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