{"id":243,"date":"2021-06-22T20:40:27","date_gmt":"2021-06-22T11:40:27","guid":{"rendered":"https:\/\/rfsec.ddns.net\/db\/?p=243"},"modified":"2021-06-25T15:56:11","modified_gmt":"2021-06-25T06:56:11","slug":"helm%e3%81%a7wordpress%e3%82%92%e3%83%87%e3%83%97%e3%83%ad%e3%82%a4","status":"publish","type":"post","link":"https:\/\/rfsec.ddns.net\/db\/?p=243","title":{"rendered":"helm\u3067wordpress\u3092\u30c7\u30d7\u30ed\u30a4"},"content":{"rendered":"\n<p>\u3053\u308c\u307e\u3067\u306e\u5931\u6557\u306e\u4e00\u56e0\uff1a<\/p>\n\n\n\n<p>(1)microk8s config >.kube\/config\u306e\u672a\u5b9f\u65bd\u3002<\/p>\n\n\n\n<p>(2)\u30af\u30ea\u30fc\u30f3\u3067\u306a\u3044\u74b0\u5883\u3078\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3002\uff08\u4f8b\u3048\u3070\u300180\/tcp\u304c\u65e2\u306b\u4f7f\u308f\u308c\u3066\u3044\u305f\u74b0\u5883\uff09<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ microk8s config &gt;.kube\/config  \u3092\u5b9f\u884c\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3002\nThe connection to the server localhost:8080 was refused - did you specify the right host or port?\n\n#helm\u3092make\ngit clone https:\/\/github.com\/helm\/helm.git\ncd helm\n#\u3053\u3053\u3067make\u3059\u308b\u3068 go\u3000\u304c\u6b20\u843d\u3057\u3066\u3044\u3066\u30a8\u30e9\u30fc snap\u3067go\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nsudo snap install go --classic\nmake\nsudo make install\n\nkubectl create namespace helm-test\nnamespace\/helm-test created\n\nmars@mars-VirtualBox:~$ helm install test bitnami\/wordpress --namespace helm-test \nWARNING: Kubernetes configuration file is group-readable. This is insecure. Location: \/home\/mars\/.kube\/config\nWARNING: Kubernetes configuration file is world-readable. This is insecure. Location: \/home\/mars\/.kube\/config\nNAME: test\nLAST DEPLOYED: Tue Jun 22 19:46:16 2021\nNAMESPACE: helm-test\nSTATUS: deployed\nREVISION: 1\nNOTES:\n** Please be patient while the chart is being deployed **\nYour WordPress site can be accessed through the following DNS name from within your cluster:\n    test-wordpress.helm-test.svc.cluster.local (port 80)\nTo access your WordPress site from outside the cluster follow the steps below:\n1. Get the WordPress URL by running these commands:\n  NOTE: It may take a few minutes for the LoadBalancer IP to be available.\n        Watch the status with: &#39;kubectl get svc --namespace helm-test -w test-wordpress&#39;\n   export SERVICE_IP=$(kubectl get svc --namespace helm-test test-wordpress --template &quot;{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}&quot;)\n   echo &quot;WordPress URL: http:\/\/$SERVICE_IP\/&quot;\n   echo &quot;WordPress Admin URL: http:\/\/$SERVICE_IP\/admin&quot;\n\n2. Open a browser and access WordPress using the obtained URL.\n3. Login with the following credentials below to see your blog:\n  echo Username: user\n  echo Password: $(kubectl get secret --namespace helm-test test-wordpress -o jsonpath=&quot;{.data.wordpress-password}&quot; | base64 --decode)<\/code><\/pre><\/div>\n\n\n\n<p>\u6b21\u306e\u3088\u3046\u306b\u3001wordpress\u3068mariadb\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>helm list -n helm-test\n\nWARNING: Kubernetes configuration file is group-readable. This is insecure. Location: \/home\/mars\/.kube\/config\nWARNING: Kubernetes configuration file is world-readable. This is insecure. Location: \/home\/mars\/.kube\/config\nNAME\tNAMESPACE\tREVISION\tUPDATED                                \tSTATUS  \tCHART            \tAPP VERSION\ntest\thelm-test\t1       \t2021-06-22 19:46:16.598835081 +0900 JST\tdeployed\twordpress-11.0.16\t5.7.2      \n\n$  kubectl get po -n helm-test\nNAME                             READY   STATUS    RESTARTS   AGE\ntest-wordpress-8d8bb84b6-m5b5j   0\/1     Running   0          87s\ntest-mariadb-0                   1\/1     Running   0          87s<\/code><\/pre><\/div>\n\n\n\n<p><strong>Admin\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u305fwordpress\u306e\u753b\u9762<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"659\" src=\"https:\/\/rfsec.ddns.net\/db\/wp-content\/uploads\/2021\/06\/wordpress-admin-1024x659.png\" alt=\"\" class=\"wp-image-246\" srcset=\"https:\/\/rfsec.ddns.net\/db\/wp-content\/uploads\/2021\/06\/wordpress-admin-1024x659.png 1024w, https:\/\/rfsec.ddns.net\/db\/wp-content\/uploads\/2021\/06\/wordpress-admin-300x193.png 300w, https:\/\/rfsec.ddns.net\/db\/wp-content\/uploads\/2021\/06\/wordpress-admin-768x495.png 768w, https:\/\/rfsec.ddns.net\/db\/wp-content\/uploads\/2021\/06\/wordpress-admin-624x402.png 624w, https:\/\/rfsec.ddns.net\/db\/wp-content\/uploads\/2021\/06\/wordpress-admin.png 1056w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u307e\u3067\u306e\u5931\u6557\u306e\u4e00\u56e0\uff1a (1)microk8s config >.kube\/config\u306e\u672a\u5b9f\u65bd\u3002 (2)\u30af\u30ea\u30fc\u30f3\u3067\u306a\u3044\u74b0\u5883\u3078\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3002\uff08\u4f8b\u3048\u3070\u300180\/tcp\u304c\u65e2\u306b\u4f7f\u308f\u308c\u3066\u3044\u305f\u74b0\u5883\uff09 \u6b21\u306e\u3088\u3046\u306b\u3001word [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-243","post","type-post","status-publish","format-standard","hentry","category-network"],"featured_image_src":null,"author_info":{"display_name":"mars","author_link":"https:\/\/rfsec.ddns.net\/db\/?author=1"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=243"}],"version-history":[{"count":3,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/243\/revisions"}],"predecessor-version":[{"id":249,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=\/wp\/v2\/posts\/243\/revisions\/249"}],"wp:attachment":[{"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rfsec.ddns.net\/db\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}