Here, we show as shortly as possible how we can place a POD on the controlplane node on killerkoda CKA playground:

Task: place a POD on the controlplane POD using Affinity

# create POD YAML:
k run mypod--image nginx -o yaml --dry-run=client > pod.yaml

# edit pod.yaml (in killerkoda you can use the editor that helps with the syntax. Also look in the documentation above):
apiVersion: v1
kind: Pod
metadata:
  labels:
    run: mypod
  name: mypod
spec:
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
          - matchExpressions:
              - key: myKey
                operator: In
                values:
                  - "label1"
                  - "label2"

# create pod
k apply -f pod.yaml

# check pod location
k get pod -o wide

# check, why the pod is in Pending state:
k describe pod mypod | grep -A 100 Events:

# add a matching label to the controlplane node
k label nodes controlplane myKey=label1

# the pod is still not scheduled because of a taint. View taints:
k describe nodes controlplane | grep -i taint

# remove taint
k taint node controlplane node-role.kubernetes.io/control-plane:NoSchedule-

# now the pod is scheduled
k get pod -o wide

Reference

39 comments

  1. Its like you read my mind You appear to know a lot about this like you wrote the book in it or something I think that you could do with some pics to drive the message home a little bit but instead of that this is fantastic blog An excellent read I will certainly be back

  2. What i do not understood is in truth how you are not actually a lot more smartlyliked than you may be now You are very intelligent You realize therefore significantly in the case of this topic produced me individually imagine it from numerous numerous angles Its like men and women dont seem to be fascinated until it is one thing to do with Woman gaga Your own stuffs nice All the time care for it up

  3. Somebody essentially lend a hand to make significantly posts I might state That is the very first time I frequented your web page and up to now I surprised with the research you made to create this particular put up amazing Excellent job

  4. Its like you read my mind You appear to know a lot about this like you wrote the book in it or something I think that you could do with some pics to drive the message home a little bit but instead of that this is fantastic blog An excellent read I will certainly be back

  5. Fantastic beat I would like to apprentice while you amend your web site how could i subscribe for a blog site The account helped me a acceptable deal I had been a little bit acquainted of this your broadcast offered bright clear concept

  6. I loved as much as youll receive carried out right here The sketch is attractive your authored material stylish nonetheless you command get bought an nervousness over that you wish be delivering the following unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you shield this hike

  7. certainly like your website but you need to take a look at the spelling on quite a few of your posts Many of them are rife with spelling problems and I find it very troublesome to inform the reality nevertheless I will definitely come back again

  8. ????? ??????, ??????????, ???? ?? ???????? ??????????? ?????????? ? ???????. ?????????? ? 1935 ????, ?? ???? ?????? ???-?-????? ????????? ?????? ?????????????? ????? ? ????????????? ??????. ??? ?????? ?????, ????? ??? „Can’t Help Falling in Love“, „Suspicious Minds“ ? „Jailhouse Rock“, ????? ????????? ????? ? ?????????? ????????? ??????????? ?? ????? ????. ?????? ????? ???????? ?????? ??????????? ????????????? ? ????????? ????????, ??? ??????? ??? ???????? ?? ?????? ? ??????, ?? ? ? ?????????????. ??? ???????? ???????? ????? ? ??????????? ????? ????????? ????????. ??????? ?????? 2024 ???? ? ??????? ?????? ????????? mp3.

  9. Our Salesforce CRT-450 practice test is the most reliable solution to quickly prepare for your Salesforce Salesforce Certified Platform Developer I (SP23). We are certain that our Salesforce CRT-450 practice exam will guide you to get certified on the first try. Here is how we serve you to prepare successfully.

  10. Eminem, ????????? ??? ??????? ???? ?????? III, ???????? ??? ???? ?? ?????????? ???-???????????? ???? ??????. ?????? ?????????????? ????????, ????? ?????? ? ??????????? ??????????? ? ????? ? ????? ?? ???????? ???????? ??????????? ?? ????? ????. ??? ?????? ????? ???????? „Lose Yourself“, ???? ? ????-???????????, „Stan“, ? ???????????? ??????????? ???????, ? „Rap God“, ??? ?? ????????????? ???? ??????????? ???????? ? ???????. ??? ??? ?????, ? ????? ?????? ??????, ???????? ??? ???????????? ? ??????? ?? ??????????? ?????????. ??????? mp3 ?????? 2024 ???? ? ??????? ?????? ?????????.

  11. I simply could not go away your web site prior to suggesting that I really enjoyed the standard info a person supply on your guests Is going to be back incessantly to investigate crosscheck new posts

  12. My brother suggested I might like this website He was totally right This post actually made my day You cannt imagine just how much time I had spent for this information Thanks

  13. Fantastic beat I would like to apprentice while you amend your web site how could i subscribe for a blog site The account helped me a acceptable deal I had been a little bit acquainted of this your broadcast offered bright clear concept

  14. Hi Neat post Theres an issue together with your web site in internet explorer may test this IE still is the marketplace chief and a good component of people will pass over your fantastic writing due to this problem

  15. What a fantastic resource! The articles are meticulously crafted, offering a perfect balance of depth and accessibility. I always walk away having gained new understanding. My sincere appreciation to the team behind this outstanding website.

  16. Magnificent beat I would like to apprentice while you amend your site how can i subscribe for a blog web site The account helped me a acceptable deal I had been a little bit acquainted of this your broadcast offered bright clear idea

  17. I loved as much as you will receive carried out right here The sketch is tasteful your authored subject matter stylish nonetheless you command get got an edginess over that you wish be delivering the following unwell unquestionably come further formerly again as exactly the same nearly very often inside case you shield this hike

  18. I was recommended this website by my cousin I am not sure whether this post is written by him as nobody else know such detailed about my trouble You are amazing Thanks

  19. In today’s competitive digital landscape, mastering the Salesforce Order-Management-Administrator exam is crucial for professionals aiming to enhance their career prospects. As organizations increasingly rely on Salesforce for their order management needs, the demand for certified administrators has skyrocketed. This comprehensive guide will provide you with everything you need to know to excel in your Salesforce Order-Management-Administrator exam, featuring detailed insights into dumps questions and answers.

  20. I do trust all the ideas youve presented in your post They are really convincing and will definitely work Nonetheless the posts are too short for newbies May just you please lengthen them a bit from next time Thank you for the post

  21. I loved as much as you will receive carried out right here The sketch is tasteful your authored subject matter stylish nonetheless you command get got an edginess over that you wish be delivering the following unwell unquestionably come further formerly again as exactly the same nearly very often inside case you shield this hike

  22. Somebody essentially lend a hand to make significantly articles Id state That is the very first time I frequented your website page and up to now I surprised with the research you made to make this actual submit amazing Wonderful task

  23. Magnificent beat I would like to apprentice while you amend your site how can i subscribe for a blog web site The account helped me a acceptable deal I had been a little bit acquainted of this your broadcast offered bright clear idea

  24. you are in reality a just right webmaster The site loading velocity is incredible It seems that you are doing any unique trick In addition The contents are masterwork you have performed a wonderful task on this topic

  25. I do believe all the ideas youve presented for your post They are really convincing and will certainly work Nonetheless the posts are too short for novices May just you please lengthen them a little from subsequent time Thanks for the post

  26. Its like you read my mind You appear to know so much about this like you wrote the book in it or something I think that you can do with a few pics to drive the message home a little bit but instead of that this is excellent blog A fantastic read Ill certainly be back

Comments

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.