Trick Questions
Trick Questions
NACLs are stateless, operate at the subnet level, and control traffic based on IP
addresses, while Security Groups are stateful, operate at the instance level, and
control traffic based on IP addresses, protocols, and ports.
NACLs are evaluated in order, with an implicit "deny all" rule, while Security
Groups are stateful, with an implicit "allow all" outbound rule.
customer success
juniper square
finance related
docker cgroup?
Cgroup gives the ability to allocate things to those containers
e.g. below will lock down a Docker container to the first CPU core, you’d
append --cpuset-cpus=0
docker run -d --name='kasun_priority_1' --cpuset-cpus=0 --cpu-shares=20
kasuntest1
-c, --cpu-shares int CPU shares (relative weight)
--cpuset-cpus string CPUs in which to allow execution (0-3, 0,1)
--cpuset-mems string MEMs in which to allow execution (0-3, 0,1)
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
volumes:
db_data:
https://medium.com/@kasunmaduraeng/docker-namespace-and-cgroups-
dece27c209c7
troubleshooting K8
https://kubernetes.io/docs/tasks/debug/debug-application/debug-pods/
Both sidecar containers and init containers in Kubernetes are used within a Pod
to extend or enhance the primary containers’ functionality. However, they serve
different purposes and have different characteristics.
what is kubelet?
logging/moniotoring tool.
what is iam??
what is cni ??
how you manage secrets on jenkins and eks clusters and ec2?
if you have to run shell command on diff machines in same ansible playbook ,
how do you do that??
can you create cloud resources in ansible , then why you will have terraforM?
if multiple people are working on same tfstate file how do you lock tat?
in s3 has internet access , but ec2 is in private with no nat gateway , how do u
give connection..
ignore test stages in jenkins pipelines and. start from some other stage..
monitoring tools
what’s cni
how to lock tfstate file so that multiple people are not wokrin on it
https://www.youtube.com/watch?v=2audUYEQlag
https://spacelift.io/blog/kubernetes-sidecar-container
valueFrom:
configMapKeyRef:
name: game-demo # The ConfigMap this value comes from.
key: player_initial_lives # The key to fetch.
Helm chart using the helm install command. They can provide specific
configurations that override the default values, tailoring the
application to their environment.
● Updates and Management: After installation, Helm tracks
the application’s state and allows for updates helm upgrade,
rollbacks helm rollback, and removal helm uninstall.
x + y = 1.10
0+1
0.10 + 1.10
10 mins
10 min 10 wid
$1
1 -2 1 days
2-4 2 days
4-8 3rdday
8-16 4th day
A bat and a ball cost $1.10 in total. The bat costs $1 more than the ball. How
much does the ball cost?
Santhosh Sundarasamy
4:41 PM
If it takes 5 machines 5 minutes to make 5 widgets, how long would it take 100
machines to make 100 widgets?
Santhosh Sundarasamy
4:44 PM
In a lake, there is a patch of lily pads. Every day, the patch doubles in size. If it
takes 48 days for the patch to cover the entire lake, how long would it take for
the patch to cover half of the lake?
all data on RAM is stored in EBS root volume in hubernate
s3 versioning - delete marker
https://keentolearn.medium.com/how-to-improve-your-jenkins-builds-with-
shared-libraries-5e225b7435fb