Skip to main content

Posts

Showing posts from April 24, 2022

遇到爱贬低别人的同事该怎么回应?

  遇到爱贬低别人的同事该怎么回应? Original 熊太行 罗辑思维 2022-04-30 15:30 今天与你分享的内容来自熊太行老师的课程 《关系攻略》 。这门课已经全新升级, 增加了30讲的内容 , 内容 聚焦在人的身上,告诉你怎么跟不同类型的人相处 。 这次 分享给你的这一讲 ,是我们常见的一类人: 爱贬低别人的人 。 在工作和生活中,你可能都会遇到这样的人,他每句话都要贬低别人,或明或暗地抬高自己,他以挖苦讽刺为能,以让别人窘迫、尴尬为乐。 那么,为什么有的人会爱贬低别人呢?这种贬低别人的行为是不是传说中的PUA?如果你遇到爱贬低你的人,应该怎么应对呢? 让我们一起来看看熊太行老师是怎么

RBAC ServiceAccount Role RoleBinding

  Create a new ServiceAccount processor in Namespace project-hamster . Create a Role and RoleBinding , both named processor as well. These should allow the new SA to only create Secrets and ConfigMaps in that Namespace .   Answer: Let's talk a little about RBAC resources A ClusterRole | Role defines a set of permissions and where it is available , in the whole cluster or just a single Namespace . A ClusterRoleBinding | RoleBinding connects a set of permissions with an account and defines where it is applied , in the whole cluster or just a single Namespace . Because of this there are 4 different RBAC combinations and 3 valid ones: Role + RoleBinding (available in single Namespace , applied in single Namespace ) ClusterRole + ClusterRoleBinding (available cluster-wide, applied cluster-wide) ClusterRole + RoleBinding (available cluster-wide, applied in single Namespace ) Role + ClusterRoleBinding ( NOT POSSIBLE: available in single Namespace , applied cluster-wide

[转载]时代周刊《泽连斯基的世界》

  夜晚是最难熬的,当他躺在行军床上,耳边传来防空警报的呜呜声,他的手机还在旁边嗡嗡作响。它的屏幕使他的脸在黑暗中看起来像一个幽灵,他的眼睛在扫描他白天没有机会阅读的信息。一些来自他的妻子和孩子,许多来自他的顾问,一些来自他的部队,他们被围在掩体里,一次又一次地要求他提供更多的武器来打破俄罗斯的围困。 在他自己的地堡里,总统有一个习惯:即使一天结束了,也会花很多时间盯着他的日程。他躺在床上,想知道他是否错过了什么,忘记了什么人。“这没有意义,” 弗拉基米尔-泽连斯基在基辅的总统府告诉我,就在他有时睡觉的办公室外面。“还是原来那些日程。我知道今天已经结束了。但我还是看了好几遍,总感觉有些不对劲。” 让他的眼睛闭不上的并不是焦虑。“那是我的良心在困扰我。” 同样的想法在他的脑子里不断翻腾。“我想让自己去睡觉,但现在呢?有些事情正在发生。” 在乌克兰的某个地方,炸弹仍在落下。平民仍然被困在地下室或废墟下。俄罗斯人仍在犯下战争、强奸和酷刑的罪行。他们的炸弹正在炸平整个城镇。马里乌波尔市和它最后的守卫者被围困。一场关键的战役已经在东部打响。在这一切背后,从喜剧演员转变为总统的泽连斯基仍然需要让世界参与进来,并说服外国领导人,他的国家正需要他们的帮助,不惜一切代价。 对于乌克兰境外的世界,泽连斯基告诉我:“人们在Instagram和社交媒体上围观这场战争。当他们厌倦它时,他们就会迅速离去。” 这是人的本性。恐惧往往会让我们闭上眼睛。“到处都是鲜血,” 他解释说。“随之而来的是恐惧的情绪”。泽连斯基感觉到世界的注意力在褪去,这让他的烦恼几乎与俄罗斯的炸弹一样多。大多数晚上,当他扫视他的日程时,他的任务清单与战争本身关系不大,而与人们对它的看法更有关。他的任务就是让自由世界以乌克兰的视角来体验这场战争:这关乎着我们自己的生存。 他似乎已经成功了。美国和欧洲急忙向他提供援助,向乌克兰提供的武器比二战以来向任何其他国家提供的都多。数以千计的记者来到基辅,将采访请求塞满了他的工作人员的收件箱。 我的请求不仅仅是为了有机会向总统提问,而是为了以他和他的团队所经历的方式来看待这场战争。在4月的两个星期里,他们允许我待在班科瓦街的总统府大院里,观察他们的日常工作,并在他们现在生活和工作的办公室里闲逛。泽连斯基和他的工作人员让这个地方看上去依然在正常运转。我们开着玩笑,

Kill Scheduler, Manual Scheduling

  Ssh into the master node with ssh cluster2-master1 . Temporarily stop the kube-scheduler, this means in a way that you can start it again afterwards. Create a single Pod named manual-schedule of image httpd:2.4-alpine , confirm its created but not scheduled on any node. Now you're the scheduler and have all its power, manually schedule that Pod on node cluster2-master1. Make sure it's running. Start the kube-scheduler again and confirm its running correctly by creating a second Pod named manual-schedule2 of image httpd:2.4-alpine and check if it's running on cluster2-worker1.   Answer: Stop the Scheduler First we find the master node: ➜ k get node NAME               STATUS   ROLES   AGE   VERSION cluster2-master1   Ready   master   26h   v1.22.1 cluster2-worker1   Ready   <none>   26h   v1.22.1 Then we connect and check if the scheduler is running: ➜ ssh cluster2-master1 ➜ root@cluster2-master1:~# kubectl -n kube-system get pod | grep schedule kube-schedu