7. Why am I forbidden access?
#DevNexus2020 @ammbra1508
8. Role Base Access Control (RBAC)
#DevNexus2020 @ammbra1508
Resources
(Deployments, Pods,
Secrets, Configmaps
etc)
Actions (get, create,
list, watch etc)
API versions (core,
apps, extensions)
ClusterRole ClusterRoleBinding
Role RoleBinding
namespace
Cluster-wide
Subjects
User
ServiceAccount
Group
11. Authorization issues - Recommendations
#DevNexus2020 @ammbra1508
Administrators check API access with user impersonation
kubectl auth can-i list deployment
--as=<user_name> --namespace=<name>
How to validate permissions for a user?
12. Authorization issues - Recommendations
#DevNexus2020 @ammbra1508
Check the audit logs
Grant proper role or cluster role
kubectl create clusterrolebinding <binding-name>
--clusterrole=<role_name> --user=<user_name>
[--group=<group_name>]
How to validate permissions for a user?
13. What if my Pod is not feeling well?
#DevNexus2020 @ammbra1508
14. Health checks – The good
#DevNexus2020 @ammbra1508
Readiness probe – when
the container is available
for accepting traffic
Liveness probe – when to
restart a container
15. Health checks – The (not so) good
#DevNexus2020 @ammbra1508
What happens if a
readiness probe
gives up ?
no traffic routed to
the pod
What happens if a
liveness probe
gives up ?
pod will be
restarted
Readiness probe Liveness probe
16. Readiness probe – The not so good
#DevNexus2020 @ammbra1508
What if there is a small temporary increase in
latency to one dependent service?
17. #DevNexus2020 @ammbra1508
Readiness probe – Recommendation
Set the timeout longer than the maximum response time for
that dependency.
What if there is a small temporary increase in
latency to one dependent service?
19. #DevNexus2020 @ammbra1508
Readiness probe – Recommendation
Depending on the periodSeconds parameter you may want to
increase the failureThreshold count.
Is frequency of the readiness probe impacting
the failureThreshold count?
21. #DevNexus2020 @ammbra1508
Liveness probe – Recommendation
Regularly (exercise and) evaluate deployments, restarts, and
failures as part of running an application.
How can I know that the liveness probe
verifies the responsiveness of an application?
23. #DevNexus2020 @ammbra1508
Liveness probe – Recommendation
Set initialDelaySeconds and timeout conservatively.
What if the container startup-latency changes
over time?
24. How you manage disruptions in
Kubernetes?
#DevNexus2020 @ammbra1508
25. Involuntary Disruptions- Recommendations
#DevNexus2020 @ammbra1508
Replicate your application if you need higher availability, use a
multi-zone cluster and/or check pod requests and resources.
How to mitigate involuntary disruptions?