{"id":613,"date":"2020-05-24T17:31:08","date_gmt":"2020-05-24T09:31:08","guid":{"rendered":"https:\/\/www.myway5.com\/?p=613"},"modified":"2023-07-05T21:27:21","modified_gmt":"2023-07-05T13:27:21","slug":"kubernetes-taints-and-tolerations","status":"publish","type":"post","link":"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/","title":{"rendered":"kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5"},"content":{"rendered":"<h2>\u6982\u8ff0<\/h2>\n<p>taints \u548c tolerations \u662f\u4e00\u4e2a\u6bd4\u8f83\u597d\u7406\u89e3\u7684\u6982\u5ff5\uff0ctaints \u53ef\u4ee5\u7ffb\u8bd1\u4e3a\u6c61\u70b9\uff0c\u7ed9 node \u6253\u4e0a taints\uff0c\u5c31\u53ef\u4ee5\u7528\u6765\u9a71\u9010 pod\uff0c\u5e76\u9632\u6b62 pod \u8c03\u5ea6\u5230\u8be5\u8282\u70b9\u4e0a\u3002\u5c31\u50cf\u662f\u67d0\u4e2a\u4eba\u6709\u4e86\u4e00\u4e2a\u574f\u4e60\u60ef\uff08taints\uff09\uff0c\u90a3\u4e48\u5176\u4ed6\u4eba\u7684\u5c31\u4f1a\u8fdc\u79bb\u8fd9\u4e2a\u4eba\u3002\u4f46\u662f\u6709\u4e9b\u4eba\u53ef\u4ee5\u5bb9\u5fcd\u522b\u4eba\u7684\u574f\u4e60\u60ef\uff0c\u90a3\u4e48\u5c31\u4f1a\u4e0d\u53d7\u5f71\u54cd\u3002\u5c31\u50cf pod \u62e5\u6709\u4e86 tolerations\uff0c\u5c31\u53ef\u4ee5\u514d\u75ab\u8282\u70b9\u4e0a\u5bf9\u5e94\u7684 taints\u3002<\/p>\n<p>taints \u7684\u5b98\u65b9\u8bf4\u660e\u4e3a\uff1a<\/p>\n<blockquote><p>\n  The node this Taint is attached to has the &#8220;effect&#8221; on any pod that does not tolerate the Taint.\n<\/p><\/blockquote>\n<p>\u4e5f\u5c31\u662f\u8bf4\uff0ctaint \u4f1a\u4e3a\u6240\u6709\u4e0d\u80fd\u5fcd\u53d7\u8be5 taint \u7684 pod \u6dfb\u52a0\u526f\u4f5c\u7528\uff08\u4e0d\u8c03\u5ea6\uff0c\u504f\u597d\u4e0d\u8c03\u5ea6\uff0c\u4e0d\u6267\u884c\uff09<\/p>\n<p>\u5982\u679c\u8981\u8ba9\u67d0\u4e9b pod \u514d\u75ab\u8fd9\u4e9b taints\uff0c\u53ef\u4ee5\u4f7f\u7528 tolerations\u3002<\/p>\n<h2>taints \u7684\u4f7f\u7528<\/h2>\n<p>\u5728\u4f7f\u7528 taints \u7684\u65f6\u5019\u5f88\u7b80\u5355\uff0c\u6211\u4eec\u53ea\u9700\u8981\u6307\u5b9a\u8282\u70b9 taints \u7684 key \u548c value \u5373\u53ef\u3002\u6bd4\u5982\uff1a<\/p>\n<pre><code class=\"language-shell line-numbers\">$ kubectl taint nodes minikube onlyNginxPod=true:NoSchedule\n<\/code><\/pre>\n<p>\u5176\u4e2d\uff0conlyNginxPod \u662f taints \u7684 key\uff0ctrue \u662f value\uff0cNoSchedule \u662f effect\u3002\u53e6\u5916\u8fd8\u6709 PreferNoScheduler \u548c NoExecute\u3002\u8fd9\u91cc\u987a\u4fbf\u603b\u7ed3\u4e00\u4e0b\u8fd9\u4e09\u79cd effect \u7684\u533a\u522b:<\/p>\n<ul>\n<li>NoSchedule: \u8868\u793a\u4e0d\u8981\u5c06 Pod \u5411\u8be5\u8282\u70b9\u8c03\u5ea6\u3002\u5982\u679c Pod \u5df2\u7ecf\u8c03\u5ea6\u5230\u8be5\u8282\u70b9\u4e86\uff0c\u5219\u4e0d\u53d7\u5f71\u54cd\u3002<\/li>\n<li>PreferNoScheduler: \u8868\u793a\u5c3d\u91cf\u4e0d\u8981\u5f80\u8be5\u8282\u70b9\u8c03\u5ea6\uff0c\u4f46\u662f\u5982\u679c\u6ca1\u6709\u5176\u4ed6\u9009\u62e9\uff0c\u8fd8\u662f\u4f1a\u5c06 Pod \u8c03\u5ea6\u5230\u8be5\u8282\u70b9\u3002<\/li>\n<li>NoExecute: Pod \u4e0d\u4ec5\u4e0d\u80fd\u5f80\u4e0a\u8c03\u5ea6\uff0c\u6240\u6709\u5df2\u7ecf\u8fd0\u884c\u5728\u8be5\u8282\u70b9\u4e0a\u7684 Pod \u5c06\u4f1a\u88ab\u9a71\u9010\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e2a\u65f6\u5019\uff0c\u6211\u4eec\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a\u666e\u901a\u7684 pod\uff0c\u770b\u770b\u8c03\u5ea6\u60c5\u51b5\u3002<\/p>\n<p><em>pod.yaml<\/em><\/p>\n<pre><code class=\"language-yaml line-numbers\">apiVersion: v1\nkind: Pod\nmetadata:\n    name: nginx\n    namespace: default\n    labels:\n        app: nginx\nspec:\n    containers:\n    - name: nginx\n      image: nginx:latest\n<\/code><\/pre>\n<pre><code class=\"language-shell line-numbers\">$ kubectl apply -f pod-nginx.yaml \n$ kubectl describe pods nginx\n\nWarning  FailedScheduling  &lt;unknown&gt;  default-scheduler  0\/1 nodes are available: 1 node(s) had taint {onlyNginxPod: true}, that the pod didn't tolerate.\n<\/code><\/pre>\n<p>\u4f1a\u51fa\u73b0\u4e0a\u9762\u7684\u8b66\u544a\u4fe1\u606f\u3002\u8868\u793a\u56e0\u4e3a pod \u6ca1\u6709\u5bb9\u5fcd\u8be5 taint\uff0c\u6240\u4ee5\u6ca1\u6709\u529e\u6cd5\u8c03\u5ea6\u4e0a\u53bb\u3002<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u7528\u4ee5\u4e0b\u8bed\u53e5\u6765\u5220\u9664 taint<\/p>\n<pre><code class=\"language-shell line-numbers\">$ kubectl taint node minikube onlyNginxPod=true:NoSchedule-\n<\/code><\/pre>\n<h2>tolerations \u7684\u4f7f\u7528<\/h2>\n<p>\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u4ecd\u7136\u5e0c\u671b Pod \u53ef\u4ee5\u8c03\u5ea6\u5230\u6709 taint \u7684\u8282\u70b9\u4e0a\uff0c\u8fd9\u65f6\u5019\u5c31\u53ef\u4ee5\u4e3a Pod \u6307\u5b9a tolerations\u3002\u6bd4\u5982\u5c06\u4e0a\u9762\u7684 Pod \u6539\u5199\u6210\u5982\u4e0b\uff1a<\/p>\n<p><em>pod.yaml<\/em><\/p>\n<pre><code class=\"language-yaml line-numbers\">apiVersion: v1\nkind: Pod\nmetadata:\n    name: nginx\n    namespace: default\n    labels:\n        app: nginx\nspec:\n    containers:\n    - name: nginx\n      image: nginx:latest\n    tolerations:\n      - key: onlyNginxPod\n        operator: Equal\n        value: \"true\"\n        effect: NoSchedule\n<\/code><\/pre>\n<p>\u7136\u540e\u521b\u5efa\u8fd9\u4e2a Pod,<\/p>\n<p>\u00b7\u00b7\u00b7yaml<br \/>\n<span class=\"katex math inline\">kubectl apply -f pod.yaml<\/span> kubectl get pods<br \/>\nNAME    READY   STATUS              RESTARTS   AGE<br \/>\nnginx   0\/1     ContainerCreating   0          4s<br \/>\n\u00b7\u00b7\u00b7<\/p>\n<p>\u8bf4\u660e\u8be5 pod \u8c03\u5ea6\u6210\u529f\uff0ctolerations \u751f\u6548\u4e86\u3002tolerations \u4f1a\u5339\u914d key \u548c effect\uff0c\u53ea\u6709\u4e00\u6837\u7684\u65f6\u5019\u624d\u4f1a\u751f\u6548\u3002tolerations \u7684 operator \u5b57\u6bb5\u9664\u4e86 <code>Equal<\/code> \u4e4b\u5916\uff0c\u8fd8\u6709 <code>Exists<\/code>\u3002<\/p>\n<ul>\n<li>Equal: \u8981\u6c42 value \u4e5f\u76f8\u540c\u3002<\/li>\n<li>Exists: \u4e0d\u9700\u8981\u8bbe\u7f6e value \u5b57\u6bb5\u3002<\/li>\n<\/ul>\n<h2>kubernetes \u4e2d\u4f7f\u7528 taints \u548c tolerations \u7684\u5e38\u7528\u573a\u666f<\/h2>\n<p>taints \u548c tolerations \u4e0d\u4ec5\u4ec5\u662f\u63d0\u4f9b\u7ed9\u7528\u6237\u4f7f\u7528\u7684\u7279\u6027\uff0ckubernetes \u672c\u8eab\u4e5f\u5927\u91cf\u4f7f\u7528\u4e86 taints \u548c tolerations\u3002\u6bd4\u5982\uff1a<\/p>\n<ul>\n<li>\n<p><code>node.kubernetes.io\/not-ready<\/code>: Node \u8fd8\u6ca1\u51c6\u5907\u597d\uff0c\u5bf9\u5e94\u7684 NodeCondition \u7684 <code>Ready<\/code> \u4e3a <code>False<\/code>\u3002\u6bd4\u5982\u5728\u521b\u5efa\u96c6\u7fa4\u65f6\uff0c\u8fd8\u6ca1\u6709\u5b89\u88c5 CNI \u7684\u8bdd\uff0c\u8282\u70b9\u5c31\u4f1a\u6709\u8be5 taint\u3002\u5bf9\u5e94\u7684 effect \u4e3a NoSchedule\u3002<\/p>\n<\/li>\n<li>\n<p><code>node.kubernetes.io\/unreachable<\/code>: node controller \u65e0\u6cd5\u8fde\u63a5\u5230 Node\uff0c\u6b64\u65f6 NodeCondition \u7684 <code>Ready<\/code> \u4e3a <code>Unknown<\/code>\u3002\u5bf9\u5e94\u7684 effect \u4e3a NoSchedule\u3002<\/p>\n<\/li>\n<li>\n<p><code>node.kubernetes.io\/out-of-disk<\/code>: \u78c1\u76d8\u7528\u5c3d\u3002\u5bf9\u5e94\u7684 effect \u4e3a NoSchedule\u3002<\/p>\n<\/li>\n<li>\n<p><code>node.kubernetes.io\/memory-pressure<\/code>: \u8282\u70b9\u6709\u5185\u5b58\u7684\u538b\u529b\u3002\u5bf9\u5e94\u7684 effect \u4e3a NoSchedule\u3002<\/p>\n<\/li>\n<li>\n<p><code>node.kubernetes.io\/disk-pressure<\/code>: \u8282\u70b9\u6709\u78c1\u76d8\u538b\u529b\u3002\u548c\u56db\u4e2a\u53c2\u6570\u6709\u5173\uff1anodefs.available, nodefs.inodesFree, imagefs.available, imagefs.inodesFree\u3002nodefs \u662f\u7528\u6765\u5b58\u50a8\u5377\u548c daemon \u65e5\u5fd7\u7684\uff0cimagefs \u662f\u5bb9\u5668\u8fd0\u884c\u65f6\u7528\u6765\u5b58\u50a8\u955c\u50cf\u548c\u5bb9\u5668\u53ef\u5199\u5c42\u7684\u3002\u5f53\u8fd9\u4e9b\u503c\u5230\u8fbe\u67d0\u4e2a\u9608\u503c\uff0c\u5c31\u4f1a\u51fa\u73b0 disk-pressure\u3002\u5bf9\u5e94\u7684 effect \u4e3a NoSchedule\u3002<\/p>\n<\/li>\n<li>\n<p><code>node.kubernetes.io\/network-unavailable<\/code>: \u8282\u70b9\u7684\u7f51\u7edc\u8fd8\u4e0d\u53ef\u7528\u3002\u5bf9\u5e94\u7684 effect \u4e3a NoSchedule\u3002<\/p>\n<\/li>\n<li>\n<p><code>node.kubernetes.io\/unschedulable<\/code>: \u8282\u70b9\u662f\u4e0d\u53ef\u8c03\u5ea6\u7684\u3002\u5bf9\u5e94\u7684 effect \u4e3a NoSchedule\u3002<\/p>\n<\/li>\n<li>\n<p><code>node.kubernetes.io\/pid-pressure<\/code>: \u8282\u70b9\u4e0a\u7684\u8fdb\u7a0b\u592a\u591a\u3002\u5bf9\u5e94\u7684 effect \u4e3a NoSchedule\u3002<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8ff0 taints \u548c tolerations \u662f\u4e00\u4e2a\u6bd4\u8f83\u597d\u7406\u89e3\u7684\u6982\u5ff5\uff0ctaints \u53ef\u4ee5\u7ffb\u8bd1\u4e3a\u6c61\u70b9\uff0c\u7ed9 no &hellip; <a href=\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[],"class_list":["post-613","post","type-post","status-publish","format-standard","hentry","category-k8s"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5 - \u4e00\u53ea\u5b89\u9759\u7684\u732b<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5 - \u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"og:description\" content=\"\u6982\u8ff0 taints \u548c tolerations \u662f\u4e00\u4e2a\u6bd4\u8f83\u597d\u7406\u89e3\u7684\u6982\u5ff5\uff0ctaints \u53ef\u4ee5\u7ffb\u8bd1\u4e3a\u6c61\u70b9\uff0c\u7ed9 no &hellip; \u7ee7\u7eed\u9605\u8bfbkubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-24T09:31:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-05T13:27:21+00:00\" \/>\n<meta name=\"author\" content=\"jiangpengfei\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"jiangpengfei\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/\"},\"author\":{\"name\":\"jiangpengfei\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"headline\":\"kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5\",\"datePublished\":\"2020-05-24T09:31:08+00:00\",\"dateModified\":\"2023-07-05T13:27:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/\"},\"wordCount\":150,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"articleSection\":[\"k8s\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/\",\"url\":\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/\",\"name\":\"kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5 - \u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/#website\"},\"datePublished\":\"2020-05-24T09:31:08+00:00\",\"dateModified\":\"2023-07-05T13:27:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.myway5.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.myway5.com\/#website\",\"url\":\"https:\/\/www.myway5.com\/\",\"name\":\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"description\":\"\u60f3\u5565\u5462\",\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.myway5.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\",\"name\":\"jiangpengfei\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"caption\":\"jiangpengfei\"},\"logo\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.myway5.com\/index.php\/author\/joyme\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/","og_locale":"zh_CN","og_type":"article","og_title":"kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","og_description":"\u6982\u8ff0 taints \u548c tolerations \u662f\u4e00\u4e2a\u6bd4\u8f83\u597d\u7406\u89e3\u7684\u6982\u5ff5\uff0ctaints \u53ef\u4ee5\u7ffb\u8bd1\u4e3a\u6c61\u70b9\uff0c\u7ed9 no &hellip; \u7ee7\u7eed\u9605\u8bfbkubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5","og_url":"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/","og_site_name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","article_published_time":"2020-05-24T09:31:08+00:00","article_modified_time":"2023-07-05T13:27:21+00:00","author":"jiangpengfei","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"jiangpengfei","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/#article","isPartOf":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/"},"author":{"name":"jiangpengfei","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"headline":"kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5","datePublished":"2020-05-24T09:31:08+00:00","dateModified":"2023-07-05T13:27:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/"},"wordCount":150,"commentCount":0,"publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"articleSection":["k8s"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/","url":"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/","name":"kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","isPartOf":{"@id":"https:\/\/www.myway5.com\/#website"},"datePublished":"2020-05-24T09:31:08+00:00","dateModified":"2023-07-05T13:27:21+00:00","breadcrumb":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.myway5.com\/index.php\/2020\/05\/24\/kubernetes-taints-and-tolerations\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.myway5.com\/"},{"@type":"ListItem","position":2,"name":"kubernetes \u7684 taints \u548c tolerations \u7684\u7406\u89e3\u548c\u5b9e\u8df5"}]},{"@type":"WebSite","@id":"https:\/\/www.myway5.com\/#website","url":"https:\/\/www.myway5.com\/","name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","description":"\u60f3\u5565\u5462","publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.myway5.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685","name":"jiangpengfei","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","caption":"jiangpengfei"},"logo":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/"},"url":"https:\/\/www.myway5.com\/index.php\/author\/joyme\/"}]}},"views":5506,"_links":{"self":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/comments?post=613"}],"version-history":[{"count":1,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/613\/revisions"}],"predecessor-version":[{"id":614,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/613\/revisions\/614"}],"wp:attachment":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/media?parent=613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/categories?post=613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/tags?post=613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}