git rebase → what is it?

hint:   git config pull.rebase false  # merge (the default strategy)
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only

You would have seen the above message while pulling from a remote branch.

This means that what strategy are…

--

--

Suppose you deleted the deployment — and you are expecting that the cluster autoscaler will be terminating nodes… you can monitor that using this command —

kubectl -n kube-system logs -f deployment/cluster-autoscaler |grep "Scale-down: removing empty node"

--

--

The deployment, service and ingress for nginx smoke test you can go for is provided below —

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-smoke-test
namespace: aem
spec:
selector:
matchLabels:
app: nginx
replicas: 1
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
labels:
app: nginx
name: nginx-smoke-test
namespace: aem
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: nginx
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-body-size: 200m
name: nginx-smoke-test
namespace: aem
spec:
rules:
- host: nginx-smoke-test.aem-dev.aws.ziggo.io
http:
paths:
- backend:
service:
name: nginx-smoke-test
port:
number: 80
path: /
pathType: ImplementationSpecific

--

--

Login —

ACCOUNT_ID=$(aws sts get-caller-identity |grep arn |awk -F":" '\''{print $6}'\'')
###
aws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin ${ACCOUNT_ID}.dkr.ecr.eu-west-1.amazonaws.com

Check which repository you are interested in —

aws ecr describe-repositories
aws ecr describe-repositories |grep some_pattern

Check images in repository (suppose repository name is dap/alpine) —

aws ecr list-images --repository-name dap/alpine

Delete repository —

aws ecr delete-repository --repository-name dap/alpine --force

--

--