CSS Corp Interview
CSS Corp Interview
6. How will u connect to ec2 when ssh is disabled? Or what are the ways to connect to ec2 when ssh is
disabled?
11.How do you handle build failures and troubleshoot issues in your build and release process?
12.What is the command to see all running & stopped containers in docker?
Create backup of ami for existing server & by using of ami create new instance with new keypair
Ref1
https://www.linkedin.com/pulse/how-do-i-recover-windows-ec2-instance-pem-file-lost-cloud-in/
3.install aws cli in linux server & then use coommad aws s3 ls
Ref2
Provide region
Access
Secret key
2.install aws cli in linux server & then use coommad aws s3 ls
Use for the s3 endpoint gateway & it is direct connection nat server to s3 &It is reduce nat charges &
check below link
https://www.youtube.com/watch?v=CIME4XLVIyU&t=4s
3.How will u attach storage when storage is filled?
s3
ebs
https://www.youtube.com/watch?v=6OY4wVVv9Ew
efs
https://docs.aws.amazon.com/efs/latest/ug/wt1-test.html
https://www.google.com/search?
q=efs+mount+on+ec2&sca_esv=597969321&rlz=1C1GCEA_enIN1071IN1071&tbm=vid&sxsrf=ACQVn
0-
s8unTRL0mqBSAN4rtUfZha4N24w:1705106695824&source=lnms&sa=X&ved=2ahUKEwiDoqK3kdm
DAxWuSWwGHeoRCP4Q_AUoAnoECAEQBA&biw=1280&bih=585&dpr=1.5#fpstate=ive&vld=cid:2a
415046,vid:Aux37Nwe5nc,st:0
https://kubernetes.io/docs/concepts/storage/storage-classes/
https://kubernetes.io/docs/concepts/storage/volumes/
Empty dir
Pv
Pvc
Secret
Config map
For a Pod that defines an emptyDir volume, the volume is created when the Pod is
assigned to a node. As the name says, the emptyDir volume is initially empty. All
containers in the Pod can read and write the same files in the emptyDir volume, though
that volume can be mounted at the same or different paths in each container. When a
Pod is removed from a node for any reason, the data in the emptyDir is deleted
permanently.
https://kubernetes.io/docs/concepts/storage/persistent-volumes/
Secret
https://kubernetes.io/docs/concepts/configuration/secret/
Configmap:
https://kubernetes.io/docs/concepts/configuration/configmap/
There are four different ways that you can use a ConfigMap to configure a
container inside a Pod:
Pod to pod
Wt is n/w plugin
Services:
https://home.robusta.dev/blog/kubernetes-service-vs-loadbalancer-vs-ingress
4.Headless service
https://stackoverflow.com/questions/50891104/how-does-statefulset-and-headless-service-works-k8s
Use case
https://medium.com/@akansh27/statefulset-3274f71a6942
5. How will u connect to ec2 when ssh is disabled? Or what are the ways to connect to ec2 when ssh
is disabled?
Then enable port in 22 port inbound rule in security group and save it
https://kubernetes.io/docs/concepts/overview/components/
kube-apiserver
The API server is a component of the Kubernetes control plane that exposes the
Kubernetes API. The API server is the front end for the Kubernetes control plane.
etcd
If your Kubernetes cluster uses etcd as its backing store, make sure you have
a back up plan for the data.
kube-scheduler
Control plane component that watches for newly created Pods with no
assigned node, and selects a node for them to run on.
Factors taken into account for scheduling decisions include: individual and
collective resource requirements, hardware/software/policy constraints, affinity
and anti-affinity specifications, data locality, inter-workload interference, and
deadlines
kube-controller-manager
There are many different types of controllers. Some examples of them are:
Node controller: Responsible for noticing and responding when nodes go down.
Job controller: Watches for Job objects that represent one-off tasks, then creates
Pods to run those tasks to completion.
EndpointSlice controller: Populates EndpointSlice objects (to provide a link
between Services and Pods).
ServiceAccount controller: Create default ServiceAccounts for new namespaces.
Type of controller:
Overlay networks
Overlay networks are best when you need containers running on different Docker
hosts to communicate, or when multiple applications work together using Swarm
services.
How do you handle build failures and troubleshoot issues in your build and release process?
https://learn.microsoft.com/en-us/azure/devops/pipelines/troubleshooting/troubleshooting?view=azure-
devops
https://vercel.com/docs/deployments/troubleshoot-a-build
.What is the command to see all running & stopped containers in docker?