{"id":150,"date":"2021-12-23T11:18:25","date_gmt":"2021-12-23T03:18:25","guid":{"rendered":"https:\/\/memoryshadow.cn\/?p=150"},"modified":"2022-06-03T19:36:50","modified_gmt":"2022-06-03T11:36:50","slug":"kubernetes-deploy-wordpress","status":"publish","type":"post","link":"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/","title":{"rendered":"kubernetes\u90e8\u7f72wordpress"},"content":{"rendered":"<h1>kubernetes\u90e8\u7f72wordpress<\/h1>\n<h2>\u9700\u6c42\u8be6\u60c5<\/h2>\n<p>\u9700\u8981\u90e8\u7f72\u4e00\u4e2aPod\uff0c\u8981\u6c42\u5982\u4e0b<\/p>\n<ul>\n<li>\u5bb9\u5668\u540d\u79f0: wordpoess\n<ul>\n<li>\u955c\u50cf: wordpass:latest<\/li>\n<li>\u7aef\u53e3\u6620\u5c04: 82\uff1a80<\/li>\n<\/ul>\n<\/li>\n<li>\u5bb9\u5668\u540d\u79f0: mysql\n<ul>\n<li>\u955c\u50cf: mysql:5.6<\/li>\n<li>mysql\u7684root\u4e3a123456<\/li>\n<li>\u521b\u5efa\u6570\u636e\u5e93 wordpress<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u73af\u5883\u8be6\u60c5<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u4e3b\u673a\u540d<\/th>\n<th>\u4e3b\u673aIP<\/th>\n<th>\u5907\u6ce8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>master<\/td>\n<td>192.168.200.104<\/td>\n<td>\u90e8\u7f72\u4e86docker\u4ed3\u5e93<\/td>\n<\/tr>\n<tr>\n<td>node<\/td>\n<td>192.168.200.119<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><code>\u6ce8: \u4e24\u53f0\u4e3b\u673a\u5747\u5728\u540c\u4e00\u4e2akubernetes\u96c6\u7fa4<\/code><\/p>\n<h2>\u89e3\u51b3\u601d\u8def<\/h2>\n<p>\u9700\u8981\u4f7f\u7528kubernetes\u7684\u8d44\u6e90\u6e05\u5355\u6765\u81ea\u52a8\u5316\u90e8\u7f72\uff0c\u800ckubernetes\u7684\u8d44\u6e90\u6e05\u5355\u76f8\u5173\u5185\u5bb9\u53ef\u4ee5\u901a\u8fc7<code>kubectl explain<\/code>\u547d\u4ee4\u6765\u9010\u4e2a\u83b7\u53d6\u8d44\u6e90\u6e05\u5355\u4e2d\u6bcf\u4e2a\u5b57\u6bb5\u7684\u5e2e\u52a9\u624b\u518c\u3002<br \/>\nkubernetes\u7684\u8d44\u6e90\u6e05\u5355\u683c\u5f0f\u6709<code>yaml<\/code>\u548c<code>json<\/code>\u4e24\u79cd\u9009\u62e9\uff0c\u6211\u9009\u62e9\u4e86<code>yaml<\/code>\u6765\u7f16\u5199\u3002<br \/>\n\u901a\u8fc7\u67e5\u8be2\u6587\u6863\uff0c\u6211\u5f97\u77e5kubernetes\u901a\u8fc7\u8d44\u6e90\u6e05\u5355\u53ef\u4ee5\u521b\u5efa\u4ee5\u4e0b\u8fd9\u4e48\u591a\u79cd\u7c7b\u578b\u7684\u8d44\u6e90\uff0c\u5728\u672c\u793a\u4f8b\u4e2d\uff0c\u6211\u4ec5\u5c55\u793a\u4f9d\u7167\u6307\u5b9a\u9700\u6c42\u521b\u5efa<code>Pod<\/code>\u8d44\u6e90\u7684\u65b9\u6848\u3002<\/p>\n<blockquote>\n<ol>\n<li>\u540d\u79f0\u7a7a\u95f4\u7ea7\u522b\uff1a\u4ec5\u5b58\u6b64\u540d\u79f0\u7a7a\u95f4\u4e0b\u751f\u6548\n<ul>\n<li>\u5de5\u4f5c\u8d1f\u8f7d\u578b\u8d44\u6e90(workload)\uff1a<br \/>\n  Pod\uff1a k8s\u4e2d\u6700\u5c0f\u5355\u5143<br \/>\n  ReplicaSet\uff1a\u8c03\u5ea6\u5668\uff0c\u901a\u8fc7\u6807\u7b7e\u63a7\u5236 pod \u7684\u526f\u672c\u6570\u76ee<br \/>\n  Deployment\uff1a\u63a7\u5236\u5668\uff0c\u901a\u8fc7\u63a7\u5236 rs \u7684\u521b\u5efa\u6765\u521b\u5efa pod<br \/>\n  StatefulSet\uff1a\u4e3a\u6709\u72b6\u6001\u670d\u52a1\u521b\u5efa\u7684\u7ba1\u7406\u5668<br \/>\n  DaemonSet\uff1a\u53ef\u4ee5\u5728\u6bcf\u4e2a\u8282\u70b9\u8fd0\u884c pod \u4e3b\u952e<br \/>\n  Job\uff1a\u4e3a\u6279\u5904\u7406\u800c\u751f<br \/>\n  CronJob\uff08ReplicationController\uff09\u5728v1.11\u7248\u672c\u88ab\u5e9f\u5f03\uff1a\u4e3a\u6279\u5904\u7406\u800c\u751f<\/li>\n<li>\u670d\u52a1\u53d1\u73b0\u53ca\u8d1f\u8f7d\u5747\u8861\u578b\u8d44\u6e90\uff08ServiceDiscoveryLoadBalance\uff09\uff1aService\u3001Ingress\u3001\u2026<\/li>\n<li>\u914d\u7f6e\u4e0e\u5b58\u50a8\u578b\u8d44\u6e90\uff1aVolume\uff08\u5b58\u50a8\u5377\uff09\u3001CSI\uff08\u5bb9\u5668\u5b58\u50a8\u63a5\u53e3,\u53ef\u4ee5\u6269\u5c55\u5404\u79cd\u5404\u6837\u7684\u7b2c\u4e09\u65b9\u5b58\u50a8\u5377\uff09<\/li>\n<li>\u7279\u6b8a\u7c7b\u578b\u7684\u5b58\u50a8\u5377\uff1a<br \/>\n  ConfigMap\uff08\u5f53\u914d\u7f6e\u4e2d\u5fc3\u6765\u4f7f\u7528\u7684\u8d44\u6e90\u7c7b\u578b\uff09\uff1a\u901a\u8fc7\u4ed6\u53ef\u4ee5\u521b\u5efa\u4e00\u4e9b\u914d\u7f6e\u6587\u4ef6\uff0c\u8fbe\u5230\u70ed\u66f4\u65b0<br \/>\n  Secret\uff08\u4fdd\u5b58\u654f\u611f\u6570\u636e\uff09\uff1a\u52a0\u5bc6\u65b9\u6848\u5b58\u50a8\u6570\u636e\uff0c\u53ef\u4ee5\u7528\u5b83\u5b58\u50a8\u4e00\u4e9b\u79d8\u94a5\u7b49<br \/>\n  DownwardAPI\uff08\u628a\u5916\u90e8\u73af\u5883\u4e2d\u7684\u4fe1\u606f\u8f93\u51fa\u7ed9\u5bb9\u5668\uff09\uff1a\u4e0b\u8f7d\u6587\u4ef6\u7684\u63a5\u53e3\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u3001\u4e0a\u4f20<\/li>\n<\/ul>\n<\/li>\n<li>\u96c6\u7fa4\u7ea7\u522b\uff1a\u6240\u6709\u540d\u79f0\u7a7a\u95f4\u90fd\u53ef\u4ee5\u4f7f\u7528\n<ul>\n<li>Namespace\uff1a\u540d\u79f0\u7a7a\u95f4<\/li>\n<li>Node\uff1a\u5de5\u4f5c\u8282\u70b9<\/li>\n<li>Role<\/li>\n<li>ClusterRole<\/li>\n<li>RoleBinding<\/li>\n<li>ClusterRoleBinding<\/li>\n<\/ul>\n<\/li>\n<li>\u5143\u6570\u636e\u578b\u8d44\u6e90\n<ul>\n<li>HPA<\/li>\n<li>PodTemplate\uff08pod\u6a21\u677f\uff09<\/li>\n<li>LimitRange\uff08\u8d44\u6e90\u9650\u5236\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/blockquote>\n<h3>\u6307\u5b9a\u9700\u8981\u7684\u955c\u50cf<\/h3>\n<p>\u4f9d\u7167\u547d\u4ee4<code>kubectl explain<\/code>\u7684\u8bed\u6cd5\u683c\u5f0f, \u6211\u5728<code>kubectl explain pod.spec.containers<\/code>\u67e5\u5230\u4e86\u6307\u5b9a\u955c\u50cf\u9700\u8981\u7684\u65b9\u5f0f<\/p>\n<pre><code class=\"language-yaml \">spec:\n...\n containers:\n ...\n - name: wordpress\n   image: 192.168.200.104\/library\/wordpress:latest\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5b50\u7684\u5f62\u5f0f\u5c31\u80fd\u6307\u5b9a\u9700\u8981\u54ea\u4e2a\u955c\u50cf\u4e86\uff0c\u8fd9\u91cc\u8981\u6ce8\u610f\uff0c<strong>name\u5b57\u6bb5\u662f\u5fc5\u987b\u7684<\/strong>\u3002<\/p>\n<h3>\u7aef\u53e3\u6620\u5c04<\/h3>\n<p>\u6211\u5728\u67e5\u8be2\u955c\u50cf\u9009\u62e9\u7684\u540c\u65f6\uff0c\u4e5f\u901a\u8fc7<code>kubectl explain pod.spec.containers.ports<\/code>\u67e5\u5230\u4e86\u7aef\u53e3\u6620\u5c04\u7684\u683c\u5f0f<\/p>\n<pre><code class=\"language-yaml \">spec:\n...\n containers:\n ...\n - name: wordpress\n   image: 192.168.200.104\/library\/wordpress:latest\n   ports:\n   - containerPort: 80  # \u7533\u660e\u670d\u52a1\u4e2d\u9700\u8981\u7528\u5230\u7684\u7aef\u53e3\u53f7\n     hostPort: 82       # \u7533\u660e\u9700\u8981\u5c06\u4e0a\u9762\u8fd9\u4e2a\u7aef\u53e3\u6620\u5c04\u5230\u4e3b\u673a\u7684\u54ea\u4e2a\u7aef\u53e3\n     protocol: TCP      # \u7533\u660e\u670d\u52a1\u7684\u534f\u8bae\u7c7b\u578b\n<\/code><\/pre>\n<h3>\u8bbe\u7f6eMySQL\u5bc6\u7801<\/h3>\n<p>\u7ecf\u8fc7\u67e5\u8be2\u6587\u6863\uff0c\u6211\u5f97\u77e5\uff0cMySQL\u7684docker\u955c\u50cf\u521d\u59cb\u5bc6\u7801\u8bbe\u7f6e\u662f\u901a\u8fc7\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<code>MYSQL_ROOT_PASSWORD<\/code>\u8fdb\u884c\u8bbe\u7f6e\u7684\uff0c\u800c\u5728kubernetes\u8d44\u6e90\u6e05\u5355\u4e2d\uff0c\u73af\u5883\u53d8\u91cf\u7684\u6307\u5b9a\u5219\u662f\u9700\u8981env\u53c2\u6570<code>kubectl explain pod.spec.containers.env<\/code><\/p>\n<pre><code class=\"language-yaml \">spec:\n...\n containers:\n ...\n - name: mysql\n   image: 192.168.200.104\/library\/mysql:5.6\n   ports:\n   - containerPort: 3306\n   env:\n   - name: MYSQL_ROOT_PASSWORD\n     value: \"123456\"\n<\/code><\/pre>\n<p>\u8981\u6ce8\u610f\u7684\u4e8b\u60c5\u662f\uff0cvalue\u5b57\u6bb5\u540e\u5fc5\u987b\u662fstring\u683c\u5f0f\uff0c\u5982\u679c\u662f\u6570\u5b57\uff0c\u5219\u5fc5\u987b\u7528\u53cc\u5f15\u53f7\u5c06\u503c\u5305\u88f9\u8d77\u6765<\/p>\n<h3>\u65b0\u5efa\u6570\u636e\u5e93<\/h3>\n<p>\u5728\u65b0\u5efa\u6570\u636e\u5e93\u65f6\uff0c\u6211\u6700\u5f00\u59cb\u60f3\u5230\u7684\u662f\u901a\u8fc7<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.csdn.net\/zyx1260168395\/article\/details\/109155098#1_Init_Container_141\" title=\"Init Container\">Init\u5bb9\u5668<\/a>\u4e2d\u7684\u5c31\u7eea\u68c0\u6d4b<code>readinessProbe<\/code>\u8fdb\u884c\u5904\u7406\uff0c\u4f46\u662f\u5f88\u5feb\u53d1\u73b0\u4e0d\u53ef\u884c\uff0c\u56e0\u4e3areadinessProbe\u4f1a\u5728\u5bb9\u5668\u521b\u5efa\u6210\u529f\u540e\u7acb\u523b\u89e6\u53d1\uff0c\u800c\u5bb9\u5668\u4e2d\u7684\u670d\u52a1\u6b64\u65f6\u53ef\u80fd\u8fd8\u6ca1\u6709\u8dd1\u8d77\u6765\u3002<\/p>\n<p>\u5728\u67e5\u9605\u591a\u65b9\u6587\u6863\u540e\uff0c\u6211\u53d1\u73b0\u4e86<code>startupProbe<\/code>\u8fd9\u4e2a\u63a2\u9488\uff0c\u8fd9\u4e2a\u63a2\u9488\u662f\u5728v1.16\u88ab\u52a0\u5165kubernetes\u7684\uff0c\u5b98\u65b9\u6587\u6863\u5982\u4e0b:<\/p>\n<blockquote><p>\n  Indicates whether the application within the Container is started. All other probes are disabled if a startup probe is provided, until it succeeds. If the startup probe fails, the kubelet kills the Container, and the Container is subjected to its restart policy. If a Container does not provide a startup probe, the default state is Success\n<\/p><\/blockquote>\n<p>\u5927\u610f\u662f\u8bf4\uff0c\u4f1a\u68c0\u6d4b\u5bb9\u5668\u5185\u7684\u670d\u52a1\u662f\u5426\u6b63\u5e38\u8fd0\u884c\u3002\u8fd9\u6b63\u662f\u6211\u9700\u8981\u7684\u4e1c\u897f\uff0c\u5728\u6267\u884c<code>kubectl explain pod.spec.containers.startupProbe<\/code>\u547d\u4ee4\u83b7\u53d6\u5e2e\u52a9\u624b\u518c\u540e\uff0c\u6211\u5f88\u5feb\u6784\u5efa\u51fa\u4e86\u8fd9\u6837\u7684\u8bed\u53e5<\/p>\n<pre><code class=\"language-yaml \">spec:\n...\n containers:\n ...\n - name: mysql\n   image: 192.168.200.104\/library\/mysql:5.6\n   ...\n   startupProbe:\n    exec:\n     command: [\"mysql\",\"-uroot\",\"-p123456\",\"-e\",\"\\\"create database wordpress\\\"\"]\n<\/code><\/pre>\n<p>\u6267\u884c\u540e\u5b8c\u7f8e\u89e3\u51b3<\/p>\n<h2>\u4ee3\u7801\u89e3\u51b3<\/h2>\n<pre><code class=\"language-yaml \">#blog.yaml\napiVersion: v1\nkind: Pod\nmetadata:\n name: wordpress\n labels:\n  app: blog\nspec:\n containers:\n - name: wordpress\n   image: 192.168.200.104\/library\/wordpress:latest\n   ports:\n   - containerPort: 80\n     hostPort: 82\n     protocol: TCP\n - name: mysql\n   image: 192.168.200.104\/library\/mysql:5.6\n   ports:\n   - containerPort: 3306\n   env:\n   - name: MYSQL_ROOT_PASSWORD\n     value: \"123456\"\n   startupProbe:\n    exec:\n     command: [\"mysql\",\"-uroot\",\"-p123456\",\"-e\",\"\\\"create database wordpress\\\"\"]\n<\/code><\/pre>\n<h2>\u53c2\u8003\u6587\u7ae0<\/h2>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.jianshu.com\/p\/dc8cb183ef01\" title=\"\u70b9\u51fb\u67e5\u770b\">kubernetes\uff08k8s\uff09\u90e8\u7f72wordpress\u793a\u4f8b\u2460<\/a><br \/>\n<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/cloud.tencent.com\/developer\/article\/1609799\" title=\"\u70b9\u51fb\u67e5\u770b\">kubernetes\u4e2d\u542f\u52a8\u63a2\u9488startupProbe<\/a><br \/>\n<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.cnblogs.com\/digdeep\/p\/12319340.html\" title=\"\u70b9\u51fb\u67e5\u770b\">ImagePullBackOff \u9519\u8bef\u5904\u7406<\/a><br \/>\n<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.csdn.net\/zyx1260168395\/article\/details\/109155098\" title=\"\u70b9\u51fb\u67e5\u770b\">K8S-\u8d44\u6e90\u6e05\u5355<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>kubernetes\u90e8\u7f72wordpress \u9700\u6c42\u8be6\u60c5 \u9700\u8981\u90e8\u7f72\u4e00\u4e2aPod\uff0c\u8981\u6c42\u5982\u4e0b \u5bb9\u5668\u540d\u79f0: wordpoe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21,22],"tags":[],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-cloud-computing-and-application","category-operation-and-maintenance"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>kubernetes\u90e8\u7f72wordpress - \u58a8\u516e\u67ab\u7684\u6280\u672f\u5c0f\u7ad9<\/title>\n<meta name=\"description\" content=\"\u9700\u8981\u90e8\u7f72\u4e00\u4e2aPod\uff0c\u8981\u6c42\u5982\u4e0b* \u5bb9\u5668\u540d\u79f0: wordpoess * \u955c\u50cf: wordpass:latest * \u7aef\u53e3\u6620\u5c04: 82\uff1a80* \u5bb9\u5668\u540d\u79f0: mysql * \u955c\u50cf: mysql:5.6 * mysql\u7684root\u4e3a123456 * \u521b\u5efa\u6570\u636e\u5e93\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"kubernetes\u90e8\u7f72wordpress - \u58a8\u516e\u67ab\u7684\u6280\u672f\u5c0f\u7ad9\" \/>\n<meta property=\"og:description\" content=\"\u9700\u8981\u90e8\u7f72\u4e00\u4e2aPod\uff0c\u8981\u6c42\u5982\u4e0b* \u5bb9\u5668\u540d\u79f0: wordpoess * \u955c\u50cf: wordpass:latest * \u7aef\u53e3\u6620\u5c04: 82\uff1a80* \u5bb9\u5668\u540d\u79f0: mysql * \u955c\u50cf: mysql:5.6 * mysql\u7684root\u4e3a123456 * \u521b\u5efa\u6570\u636e\u5e93\" \/>\n<meta property=\"og:url\" content=\"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"\u58a8\u516e\u67ab\u7684\u6280\u672f\u5c0f\u7ad9\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-23T03:18:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T11:36:50+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/index.php\\\/2021\\\/12\\\/23\\\/kubernetes-deploy-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/index.php\\\/2021\\\/12\\\/23\\\/kubernetes-deploy-wordpress\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/#\\\/schema\\\/person\\\/5eef0f7d66b0c15da64949e524c4c089\"},\"headline\":\"kubernetes\u90e8\u7f72wordpress\",\"datePublished\":\"2021-12-23T03:18:25+00:00\",\"dateModified\":\"2022-06-03T11:36:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/index.php\\\/2021\\\/12\\\/23\\\/kubernetes-deploy-wordpress\\\/\"},\"wordCount\":132,\"commentCount\":0,\"articleSection\":[\"\u4e91\u8ba1\u7b97\u4e0e\u5e94\u7528\",\"\u8fd0\u7ef4\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/memoryshadow.cn\\\/index.php\\\/2021\\\/12\\\/23\\\/kubernetes-deploy-wordpress\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/index.php\\\/2021\\\/12\\\/23\\\/kubernetes-deploy-wordpress\\\/\",\"url\":\"https:\\\/\\\/memoryshadow.cn\\\/index.php\\\/2021\\\/12\\\/23\\\/kubernetes-deploy-wordpress\\\/\",\"name\":\"kubernetes\u90e8\u7f72wordpress - \u58a8\u516e\u67ab\u7684\u6280\u672f\u5c0f\u7ad9\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/#website\"},\"datePublished\":\"2021-12-23T03:18:25+00:00\",\"dateModified\":\"2022-06-03T11:36:50+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/#\\\/schema\\\/person\\\/5eef0f7d66b0c15da64949e524c4c089\"},\"description\":\"\u9700\u8981\u90e8\u7f72\u4e00\u4e2aPod\uff0c\u8981\u6c42\u5982\u4e0b* \u5bb9\u5668\u540d\u79f0: wordpoess * \u955c\u50cf: wordpass:latest * \u7aef\u53e3\u6620\u5c04: 82\uff1a80* \u5bb9\u5668\u540d\u79f0: mysql * \u955c\u50cf: mysql:5.6 * mysql\u7684root\u4e3a123456 * \u521b\u5efa\u6570\u636e\u5e93\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/index.php\\\/2021\\\/12\\\/23\\\/kubernetes-deploy-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/memoryshadow.cn\\\/index.php\\\/2021\\\/12\\\/23\\\/kubernetes-deploy-wordpress\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/index.php\\\/2021\\\/12\\\/23\\\/kubernetes-deploy-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memoryshadow.cn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"kubernetes\u90e8\u7f72wordpress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/#website\",\"url\":\"https:\\\/\\\/memoryshadow.cn\\\/\",\"name\":\"\u58a8\u516e\u67ab\u7684\u6280\u672f\u5c0f\u7ad9\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/memoryshadow.cn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memoryshadow.cn\\\/#\\\/schema\\\/person\\\/5eef0f7d66b0c15da64949e524c4c089\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/cravatar.cn\\\/avatar\\\/f774d16e5b08104e860fae80e2eb2e1d125978dbed7076f751c32852cf012477?s=96&r=g&d=404\",\"url\":\"https:\\\/\\\/cravatar.cn\\\/avatar\\\/f774d16e5b08104e860fae80e2eb2e1d125978dbed7076f751c32852cf012477?s=96&r=g&d=404\",\"contentUrl\":\"https:\\\/\\\/cravatar.cn\\\/avatar\\\/f774d16e5b08104e860fae80e2eb2e1d125978dbed7076f751c32852cf012477?s=96&r=g&d=404\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/blog.loft.games\"],\"url\":\"https:\\\/\\\/memoryshadow.cn\\\/index.php\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"kubernetes\u90e8\u7f72wordpress - \u58a8\u516e\u67ab\u7684\u6280\u672f\u5c0f\u7ad9","description":"\u9700\u8981\u90e8\u7f72\u4e00\u4e2aPod\uff0c\u8981\u6c42\u5982\u4e0b* \u5bb9\u5668\u540d\u79f0: wordpoess * \u955c\u50cf: wordpass:latest * \u7aef\u53e3\u6620\u5c04: 82\uff1a80* \u5bb9\u5668\u540d\u79f0: mysql * \u955c\u50cf: mysql:5.6 * mysql\u7684root\u4e3a123456 * \u521b\u5efa\u6570\u636e\u5e93","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:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/","og_locale":"zh_CN","og_type":"article","og_title":"kubernetes\u90e8\u7f72wordpress - \u58a8\u516e\u67ab\u7684\u6280\u672f\u5c0f\u7ad9","og_description":"\u9700\u8981\u90e8\u7f72\u4e00\u4e2aPod\uff0c\u8981\u6c42\u5982\u4e0b* \u5bb9\u5668\u540d\u79f0: wordpoess * \u955c\u50cf: wordpass:latest * \u7aef\u53e3\u6620\u5c04: 82\uff1a80* \u5bb9\u5668\u540d\u79f0: mysql * \u955c\u50cf: mysql:5.6 * mysql\u7684root\u4e3a123456 * \u521b\u5efa\u6570\u636e\u5e93","og_url":"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/","og_site_name":"\u58a8\u516e\u67ab\u7684\u6280\u672f\u5c0f\u7ad9","article_published_time":"2021-12-23T03:18:25+00:00","article_modified_time":"2022-06-03T11:36:50+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/#article","isPartOf":{"@id":"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/"},"author":{"name":"admin","@id":"https:\/\/memoryshadow.cn\/#\/schema\/person\/5eef0f7d66b0c15da64949e524c4c089"},"headline":"kubernetes\u90e8\u7f72wordpress","datePublished":"2021-12-23T03:18:25+00:00","dateModified":"2022-06-03T11:36:50+00:00","mainEntityOfPage":{"@id":"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/"},"wordCount":132,"commentCount":0,"articleSection":["\u4e91\u8ba1\u7b97\u4e0e\u5e94\u7528","\u8fd0\u7ef4"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/","url":"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/","name":"kubernetes\u90e8\u7f72wordpress - \u58a8\u516e\u67ab\u7684\u6280\u672f\u5c0f\u7ad9","isPartOf":{"@id":"https:\/\/memoryshadow.cn\/#website"},"datePublished":"2021-12-23T03:18:25+00:00","dateModified":"2022-06-03T11:36:50+00:00","author":{"@id":"https:\/\/memoryshadow.cn\/#\/schema\/person\/5eef0f7d66b0c15da64949e524c4c089"},"description":"\u9700\u8981\u90e8\u7f72\u4e00\u4e2aPod\uff0c\u8981\u6c42\u5982\u4e0b* \u5bb9\u5668\u540d\u79f0: wordpoess * \u955c\u50cf: wordpass:latest * \u7aef\u53e3\u6620\u5c04: 82\uff1a80* \u5bb9\u5668\u540d\u79f0: mysql * \u955c\u50cf: mysql:5.6 * mysql\u7684root\u4e3a123456 * \u521b\u5efa\u6570\u636e\u5e93","breadcrumb":{"@id":"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/memoryshadow.cn\/index.php\/2021\/12\/23\/kubernetes-deploy-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/memoryshadow.cn\/"},{"@type":"ListItem","position":2,"name":"kubernetes\u90e8\u7f72wordpress"}]},{"@type":"WebSite","@id":"https:\/\/memoryshadow.cn\/#website","url":"https:\/\/memoryshadow.cn\/","name":"\u58a8\u516e\u67ab\u7684\u6280\u672f\u5c0f\u7ad9","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/memoryshadow.cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/memoryshadow.cn\/#\/schema\/person\/5eef0f7d66b0c15da64949e524c4c089","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/cravatar.cn\/avatar\/f774d16e5b08104e860fae80e2eb2e1d125978dbed7076f751c32852cf012477?s=96&r=g&d=404","url":"https:\/\/cravatar.cn\/avatar\/f774d16e5b08104e860fae80e2eb2e1d125978dbed7076f751c32852cf012477?s=96&r=g&d=404","contentUrl":"https:\/\/cravatar.cn\/avatar\/f774d16e5b08104e860fae80e2eb2e1d125978dbed7076f751c32852cf012477?s=96&r=g&d=404","caption":"admin"},"sameAs":["https:\/\/blog.loft.games"],"url":"https:\/\/memoryshadow.cn\/index.php\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/memoryshadow.cn\/index.php\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memoryshadow.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memoryshadow.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memoryshadow.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/memoryshadow.cn\/index.php\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":0,"href":"https:\/\/memoryshadow.cn\/index.php\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"wp:attachment":[{"href":"https:\/\/memoryshadow.cn\/index.php\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memoryshadow.cn\/index.php\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memoryshadow.cn\/index.php\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}