Comments (7)
@jolly701 it is related to new CKAD curriculum updates (blue/green and canary deployments)
- Total amount of pods:
8
- canary-krill-deployment:
20%
which is0.2 x 8 ~= 2
- It gives us: current-krill-deployment:
6
- Scale each deployment to the calculated value
Canary deployment gives us a possibility to deploy two versions of the same deployment, so the traffic is being split accordingly. The client is not affected as the service is working, but from the backend perspective - we are able to see how the new version behaves.
from ckad-exercises.
Thanks @bavlayan would you please explain a little bit more? I thought it is resource quote related oR something
It is not related to resource quote or something. This question is just related to how you can scale deployment. You can only play on amount of pods of deployment. @janekmichalik explains it well
from ckad-exercises.
-
As you are not able to verbs some kind of resources, it means that a
Role/ClusterRole
does not allow you to.
The process with connecting theRole/ClusterRole
with the dedicatedPod
is as follows:Role/ClusterRole -> RoleBinding/ClusterRoleBinding -> ServiceAccount -> Pod
. As you are asked to change the deployment only it means that your changes will be related to theServiceAccount
within the deployment. I have deleted theserviceAccountName
field from the deployment, so the deployment used the default one, which has proper permissions. -
It is related to Security Context. All you have to do is to add (at the container level):
securityContext: allowPrivilegeEscalation: false runAsUser: 1000
-
It is related to Network Policy. There was also an
default-deny
network policy as well. I do not know, if I have done it correctly, but the only thing I had done, was to add the label (I do not remember the label, but it was provided inaccess-api
andaccess-storage
NetworkPolicies) to thenewpod
. And after that, the storage and api pods, will be able to communicate only with thenewpod
(bi-directional communication, can only communicates with api and storage) asdefault-deny
blocks everything else. But not sure about this one.
from ckad-exercises.
Hi,
I took CKAD exam twice. I faced similar same question in all of them. Actually, solution is quite simple.
There are two things that you should do.
- Scale current-krill-deployment to 6 pods with
kubectl -n test scale deployment current-krill-deployment --replicas=6
- Create deployment canary-krill-deployment or scale it. In the exam, I created the deployment with given yaml file.
-> If deployment exists,kubectl -n test scale deployment canary-krill-deployment --replicas=2
-> Set replicas count to 2 in given yaml file. Don't forget set namespace
from ckad-exercises.
Thanks @bavlayan would you please explain a little bit more? I thought it is resource quote related or something
from ckad-exercises.
N/A
from ckad-exercises.
A million thanks for the detailed answer @janekmichalik It really helps
from ckad-exercises.
Related Issues (20)
- Hi Team Could you please help me HOT 6
- Using args HOT 1
- CronJob param activeDeadlineSeconds vs startingDeadlineSeconds HOT 2
- [HELP] Network policy not working [Services and Networking] HOT 6
- Upcoming Program Changes Coming September 28, 2021 HOT 3
- all resources must be specified before annotation changes
- Misleading solution in 'hitting IP with wget'? HOT 2
- Solution for configmap --from-file HOT 1
- CKD new question HOT 8
- [HELP] Service account related question -- CKAD HOT 4
- [Help] OCI-compliant container HOT 1
- duplicate resources block in d.configuration.md>Requests and limits
- Jobs HOT 1
- Not clear suggestion in deployment canary exercise HOT 1
- Wrong solution in 4th exercise of e.observability.md
- Helm command has mistakes HOT 3
- Logging - invalid command HOT 1
- wget: bad address 'neverssl.com' [Multi-container Pods ] HOT 1
- Thanks + Typo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ckad-exercises.