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

20 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 ???? ? ??????? ?????? ?????????.

Comments

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