{"id":45274,"date":"2021-10-14T15:00:10","date_gmt":"2021-10-14T06:00:10","guid":{"rendered":"https:\/\/www.creationline.com\/?p=45274"},"modified":"2023-08-29T15:18:49","modified_gmt":"2023-08-29T06:18:49","slug":"mirantis-kubernetes-engine-mke%e3%81%a7gitlab-runner%e3%82%92%e5%8b%95%e3%81%8b%e3%81%9d%e3%81%86-%e3%80%9c-rbac%e3%82%84psp%e3%81%ae%e8%a6%b3%e7%82%b9%e3%81%8b%e3%82%89-mirantis-kubernetes-k8s","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274","title":{"rendered":"Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab"},"content":{"rendered":"<p><a href=\"\/docker\">Mirantis Kubernetes Engine (MKE)<\/a> (\u65e7Docker Enterprise &amp; Universal Control Plane (UCP))\u3068\u306f\u3001Kubernetes\u3068Swarm\u306e\u3069\u3061\u3089\u304b\u4e00\u65b9\u307e\u305f\u306f\u4e21\u65b9\u3092\u5229\u7528\u53ef\u80fd\u306a\u30b3\u30f3\u30c6\u30ca\u30aa\u30fc\u30b1\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u3002<\/p>\n<p>\u672c\u7a3f\u3067\u306f\u3001MKE\u306b<a href=\"\/gitlab\">GitLab Runner<\/a>\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3001GitLab CI\/CD\u306e\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u624b\u9806\u3068\u6ce8\u610f\u70b9\u3092\u3001MKE\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u69cb\u3001<a href=\"https:\/\/kubernetes.io\/docs\/reference\/access-authn-authz\/rbac\/\">Kubernetes\u306eRBAC<\/a>\u3001<a href=\"https:\/\/kubernetes.io\/docs\/concepts\/policy\/pod-security-policy\/\">Kubernetes\u306ePodSecurityPolicy<\/a>\u306a\u3069\u306b\u7126\u70b9\u3092\u5f53\u3066\u3064\u3064\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u74b0\u5883\u306e\u6e96\u5099<\/h2>\n<h3>GitLab<\/h3>\n<p>\u65e2\u306b\u3042\u308b\u3082\u306e\u3092\u5229\u7528\u3057\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u3053\u306eGitLab\u306e\u7279\u5b9a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u3001<a href=\"https:\/\/gitlab-docs.creationline.com\/ee\/ci\/quick_start\/#runner%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B\">Specific Runner<\/a>\u3068\u3057\u3066\u52d5\u4f5c\u3059\u308bGitLab Runner\u3092MKE\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u307e\u3059\u3002<\/p>\n<h3>MKE<\/h3>\n<p>Virtualbox\u4e0a\u306bVagrant\u3068Launchpad\u3067MKE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u307e\u305fHelm\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u8a73\u7d30\u306a\u624b\u9806\u306f\u4ee5\u524d\u306e\u30d6\u30ed\u30b0\u300c<a href=\"\/lab\/44315\">MKE\u3068MSR\u3092Launchpad\u3067Virtualbox\/Vagrant\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u3088\u3046<\/a>\u300d\u300c<a href=\"\/lab\/mirantis\/44838\">Helm\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u305fMSR\u3092\u8a66\u3057\u3066\u307f\u3088\u3046<\/a>\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4eca\u56de\u7528\u3044\u305fVagrantfile\u306f\u3053\u3061\u3089:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"ruby\">\nVagrant.configure(&quot;2&quot;) do |config|\nconfig.vm.box = &quot;centos\/7&quot;\nconfig.vm.box_check_update = false\n( 1..3 ).each do |i|\nconfig.vm.define &quot;node#{i}&quot; do |cf|\ncf.vm.hostname = &quot;node#{i}&quot;\ncf.vm.network &quot;private_network&quot;, ip: &quot;192.168.123.20#{i}&quot;\ncf.vm.provider &quot;virtualbox&quot; do |vb|\nvb.memory = 4096\nend\nend\nend\nend\n<\/pre>\n<p>launchpad.yaml\u306f\u3053\u3061\u3089\u3067\u3059:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\napiVersion: launchpad.mirantis.com\/mke\/v1.4\nkind: mke\nmetadata:\nname: my-mke-cluster\nspec:\nhosts:\n- ssh:\naddress: 192.168.123.202\nuser: vagrant\nport: 22\nkeyPath: ~\/.ssh\/id_rsa\nrole: manager\nprivateInterface: eth1\n- ssh:\naddress: 192.168.123.203\nuser: vagrant\nport: 22\nkeyPath: ~\/.ssh\/id_rsa\nrole: worker\nprivateInterface: eth1\nmke:\nversion: 3.4.5\nadminUsername: admin\nadminPassword: adminadmin\ninstallFlags:\n- --force-minimums\n- --default-node-orchestrator=kubernetes\n- --pod-cidr 172.31.0.0\/16\n- --san=node2\n- --san=192.168.123.202\nmcr:\nversion: 20.10.0\ncluster:\nprune: false\n<\/pre>\n<ul>\n<li>node1 : 192.168.123.201 : DNS\u30b5\u30fc\u30d0 \u517c Launchpad\/MKE\/Helm\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/li>\n<li>node2 : 192.168.123.202 : MKE\u30de\u30b9\u30bf\u30fc<\/li>\n<li>node3 : 192.168.123.203 : MKE\u30ef\u30fc\u30ab\u30fc<\/li>\n<\/ul>\n<h2>GitLab Runner\u306e\u30c7\u30d7\u30ed\u30a4<\/h2>\n<p>node1\u306b\u3066\u3001<a href=\"https:\/\/gitlab-docs.creationline.com\/runner\/install\/kubernetes.html\">GitLab Runner Helm Chart<\/a>\u306e\u624b\u9806\u901a\u308a\u306b\u3001\u307e\u305a Helm \u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\">\nnode1$ helm repo add gitlab https:\/\/charts.gitlab.io\n&quot;gitlab&quot; has been added to your repositories\n<\/pre>\n<p>GitLab Runner\u7528\u306eKubernetes Namespace\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u305d\u306e\u307e\u307e\u300cgitlab-runner\u300d\u3068\u3044\u3046\u540d\u524d\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\">\nnode1$ kubectl create ns gitlab-runner\nnamespace\/gitlab-runner created\n<\/pre>\n<p>Helm\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u96db\u5f62\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\">\nnode1$ helm inspect values gitlab\/gitlab-runner &gt; values.yaml.orig\nnode1$ cp values.yaml.orig values.yaml\n<\/pre>\n<p>\u3053\u308c\u304b\u3089\u30c7\u30d7\u30ed\u30a4\u3059\u308bGitLab Runner\u3092\u3001Specific Runner\u3068\u3057\u3066\u5229\u7528\u3057\u305f\u3044GitLab\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u3092\u53d6\u5f97\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u6b21\u306e2\u70b9\u3067\u3059\u3002<\/p>\n<ul>\n<li>gitlabUrl<\/li>\n<li>runnerRegistrationToken<\/li>\n<\/ul>\n<p>GitLab\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c https:\/\/gitlab.com\/[USERNAME]\/[PROJECTNAME] \u3067\u3042\u308c\u3070\u3001\u5de6\u306e\u30b5\u30a4\u30c9\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u8a2d\u5b9a\u2192CI\/CD\u3092\u958b\u304d\u3001Runner\u3092\u5c55\u958b\u3059\u308b\u304b\u3001 https:\/\/gitlab.com\/[USERNAME]\/[PROJECTNAME]\/-\/settings\/ci_cd \u3092\u958b\u304f\u3068 Specific runners \u306b\u5fc5\u8981\u306a\u8a2d\u5b9a\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>values.yaml\u306egitlabUrl\u306b\u300cRegister the runner with this URL\u300d\u306e\u5024\u3001runnerRegistrationToken\u306b\u300cAnd this registration token\u300d\u306e\u5024\u3092\u66f8\u304d\u52a0\u3048\u307e\u3059\u3002\u307e\u305f\u3001rbac.create\u3092false\u304b\u3089true\u306b\u5909\u66f4\u3057\u3001RBAC\u95a2\u9023\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u81ea\u52d5\u4f5c\u6210\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u3001configuration.html.config\u306b\u300cprivileged = true\u300d\u3092\u8ffd\u52a0\u3057\u3001<a href=\"https:\/\/hub.docker.com\/_\/docker\">docker:18.09-dind<\/a>\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u96db\u5f62\u3068\u306e\u5dee\u5206\u306f\u6b21\u306e\u901a\u308a\u3067\u3059(gitlabUrl\u3068runnerRegistrationToken\u306f\u4f0f\u305b\u3066\u3044\u307e\u3059):<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\">\nnode1$ diff -u values.yaml.orig values.yaml\n--- values.yaml.orig 2021-09-16 15:06:04.511800734 +0900\n+++ values.yaml 2021-10-07 11:17:36.732166648 +0900\n@@ -37,13 +37,13 @@\n## The GitLab Server URL (with protocol) that want to register the runner against\n## ref: https:\/\/docs.gitlab.com\/runner\/commands\/README.html#gitlab-runner-register\n##\n-# gitlabUrl: http:\/\/gitlab.your-domain.com\/\n+gitlabUrl: https:\/\/XXXXXXXXXXXXXXXXXXX\/\n\n## The Registration Token for adding new Runners to the GitLab Server. This must\n## be retrieved from your GitLab Instance.\n## ref: https:\/\/docs.gitlab.com\/ce\/ci\/runners\/README.html\n##\n-# runnerRegistrationToken: &quot;&quot;\n+runnerRegistrationToken: &quot;XXXXXXXXXXXXXXXXXXXX&quot;\n\n## The Runner Token for adding new Runners to the GitLab Server. This must\n## be retrieved from your GitLab Instance. It is token of already registered runner.\n@@ -108,7 +108,7 @@\n\n## For RBAC support:\nrbac:\n- create: false\n+ create: true\n\n## Define specific rbac permissions.\n## DEPRECATED: see .Values.rbac.rules\n@@ -172,6 +172,7 @@\n[runners.kubernetes]\nnamespace = &quot;{{.Release.Namespace}}&quot;\nimage = &quot;ubuntu:16.04&quot;\n+ privileged = true\n\n## Which executor should be used\n##\n<\/pre>\n<p>\u3067\u306fHelm\u3067GitLab Runner\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">\nnode1$ helm install -n gitlab-runner gitlab-runner -f values.yaml gitlab\/gitlab-runner\nNAME: gitlab-runner\nLAST DEPLOYED: Thu Oct 7 11:14:26 2021\nNAMESPACE: gitlab-runner\nSTATUS: deployed\nREVISION: 1\nTEST SUITE: None\nNOTES:\nYour GitLab Runner should now be registered against the GitLab instance reachable at: &quot;https:\/\/XXXXXXXXXXXXXXXXXXX\/&quot;\n\nRunner namespace &quot;gitlab-runner&quot; was found in runners.config template.\n<\/pre>\n<p>\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">\nnode1$ kubectl -n gitlab-runner get all\nNAME READY STATUS RESTARTS AGE\npod\/gitlab-runner-gitlab-runner-7dbdbd96cd-6mwqq 1\/1 Running 0 21s\n\nNAME READY UP-TO-DATE AVAILABLE AGE\ndeployment.apps\/gitlab-runner-gitlab-runner 1\/1 1 1 21s\n\nNAME DESIRED CURRENT READY AGE\nreplicaset.apps\/gitlab-runner-gitlab-runner-7dbdbd96cd 1 1 1 21s\n<\/pre>\n<p>\u554f\u984c\u306a\u304fGitLab Runner\u304c\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u5148\u307b\u3069 gitlabUrl \u3068 runnerRegistrationToken \u306e\u5024\u3092\u53d6\u5f97\u3057\u305fGitLab\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a2d\u5b9a\u30da\u30fc\u30b8\u3092\u958b\u304f\u3068\u3001\u3053\u306eGitLab Runner\u304cSpecific Runner\u3068\u3057\u3066\u5229\u7528\u53ef\u80fd\u3068\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002Pod\u540d\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-45275\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/10\/01-specific-runner.png\" alt=\"\" width=\"467\" height=\"162\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/10\/01-specific-runner.png 467w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/10\/01-specific-runner-360x125.png 360w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/p>\n<h2>\u30b8\u30e7\u30d6\u306e\u5b9f\u884c<\/h2>\n<p>\u3067\u306f\u65e9\u901fGitLab CI\/CD\u306e\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4eca\u56de\u5bfe\u8c61\u3068\u3057\u305fGitLab\u30d7\u30ed\u30b8\u30a7\u30af\u30c8(<a href=\"https:\/\/omegat.org\/\">OmegaT<\/a>\u30a4\u30e1\u30fc\u30b8\u306e\u30d3\u30eb\u30c9\u3068\u30c6\u30b9\u30c8)\u3067\u306f\u3001\u6b21\u306e .gitlab-ci.yml \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\nimage: docker:18.09\nservices:\n- docker:18.09-dind\nstages:\n- build\n- test\nbefore_script:\n- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY\nbuild:\nstage: build\nvariables:\nDOCKER_DRIVER: overlay2\nscript:\n- docker build -t $CI_REGISTRY_IMAGE:4.3.2 .\n- docker push $CI_REGISTRY_IMAGE:4.3.2\ntest:\nstage: test\nscript:\n- docker run --rm -v $(pwd)\/test\/project:\/omegat $CI_REGISTRY_IMAGE:4.3.2\n- cmp test\/test.txt test\/project\/target\/test.txt\n<\/pre>\n<h2>\u5931\u6557: pods \"\" is forbidden: non-admin user \"gitlab-runner:gitlab-runner-gitlab-runner\"<\/h2>\n<p>\u3068\u3053\u308d\u304c\u5931\u6557\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u30b8\u30e7\u30d6\u306e\u30ed\u30b0\u3092\u898b\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">\nPreparing the &quot;kubernetes&quot; executor\nUsing Kubernetes namespace: gitlab-runner\nUsing Kubernetes executor with image docker:18.09 ...\nUsing attach strategy to execute scripts...\nPreparing environment\nERROR: Job failed (system failure): prepare environment: setting up build pod: pods &quot;runner-xphxzza-project-1154-concurrent-0&quot; is forbidden: non-admin user &quot;gitlab-runner:gitlab-runner-gitlab-runner&quot; [service account &quot;gitlab-runner:default&quot;]. The configured privileged attributes access for non-admin users (&quot;[]&quot;)(&quot;[]&quot;) and for service accounts (&quot;[]&quot;)(&quot;[]&quot;) lack required permissions to use attributes [privileged] for resource . Check https:\/\/docs.gitlab.com\/runner\/shells\/index.html#shell-profile-loading for more information\n<\/pre>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u306f\u8ab0\u304c\u51fa\u3057\u3066\u3044\u308b\u306e\u304b\u7d30\u304b\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u300cERROR: Job failed (system failure):\u300d\u306f<a href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab-runner\/-\/blob\/v14.1.0\/common\/build.go#L824\">GitLab Runner<\/a>\u3001\u300cprepare environment:\u300d\u3068\u300cCheck https:\/\/docs.gitlab.com\/runner\/shells\/index.html#shell-profile-loading for more information\u300d\u3082<a href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab-runner\/-\/blob\/v14.1.0\/common\/build.go#L445-452\">GitLab Runner<\/a>\u304c\u51fa\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u6b21\u306b\u300csetting up build pod:\u300d\u306f<a href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab-runner\/-\/blob\/v14.1.0\/executors\/kubernetes\/kubernetes.go#L332-335\">Kubernetes Executor<\/a>\u304c\u51fa\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u306e\u5927\u90e8\u5206\u3092\u5360\u3081\u308b\u300cpods \"runner-xphxzza-project-1154-concurrent-0\" is forbidden: non-admin user \"gitlab-runner:gitlab-runner-gitlab-runner\" [service account \"gitlab-runner:default\"]. The configured privileged attributes access for non-admin users (\"[]\")(\"[]\") and for service accounts (\"[]\")(\"[]\") lack required permissions to use attributes [privileged] for resource\u300d\u306f\u8ab0\u304c\u51fa\u3057\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f \u516c\u958b\u3055\u308c\u3066\u3044\u308b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u691c\u7d22\u3057\u3066\u3082\u4e00\u5207\u51fa\u3066\u3053\u306a\u3044\u8b0e\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u306f\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001Kubernetes\u306eAPI\u30b5\u30fc\u30d0\u306b\u5bfe\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5236\u5fa1\u3059\u308b<a href=\"https:\/\/kubernetes.io\/docs\/reference\/access-authn-authz\/admission-controllers\/\">Admission Controller<\/a>\u306e\u3046\u3061\u3001<a href=\"https:\/\/docs.mirantis.com\/mke\/3.4\/ref-arch\/admission-controllers.html#id3\">MKE\u72ec\u81ea\u306eAdmission Controller<\/a>\u3067\u3042\u308b\u300cUCPAuthorization\u300d\u304c\u767a\u3057\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<blockquote><p>Works in conjunction with the built-in PodSecurityPolicies admission controller to prevent under-privileged users from creating Pods with privileged options.<\/p><\/blockquote>\n<p>\u8a33: \u7d44\u307f\u8fbc\u307f\u306ePodSecurityPolicy Admission Controller\u3068\u9023\u643a\u3057\u3066\u52d5\u4f5c\u3057\u3001\u975e\u7279\u6a29\u30e6\u30fc\u30b6\u304c\u7279\u6a29\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fPod\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<p>\u5148\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u7aef\u7684\u306b\u89e3\u91c8\u3059\u308b\u3068\u3001\u300cgitlab-runner\u300dNamespace\u306e\u975e\u7279\u6a29ServiceAccount\u3067\u3042\u308b\u300cgitlab-runner-gitlab-runner\u300d\u306f\u3001docker:18.09-dind\u30b3\u30f3\u30c6\u30ca\u3092Privileged\u3067\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u6a29\u9650\u304c\u306a\u3044\u3001\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3059\u306a\u308f\u3061MKE\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u56fa\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u975e\u7279\u6a29\u30e6\u30fc\u30b6\u3042\u308b\u3044\u306fServiceAccount\u304c\u7279\u6a29Pod\u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u9632\u3050Admission Controller\u3092\u72ec\u81ea\u306b\u5c0e\u5165\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u6709\u52b9\u5316\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3053\u306e\u307e\u307e\u3067\u306fMKE\u4e0a\u3067\u3001privileged\u304c\u5fc5\u8981\u306adocker:dind\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3059\u308bGitLab Runner\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u5bfe\u7b56\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h2>\u5bfe\u7b561: cluster-admin ClusterRole\u3092ServiceAccount\u306b\u7d50\u3073\u3064\u3051\u308b<\/h2>\n<p><a href=\"https:\/\/docs.mirantis.com\/mke\/3.4\/\">MKE\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u53c2\u7167\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.mirantis.com\/mke\/3.4\/ops\/deploy-apps-k8s\/pod-security-policies.html#use-the-unprivileged-policy\">Use the unprivileged policy<\/a><\/li>\n<\/ul>\n<blockquote><p>PSPs do not override security defaults built into the MKE RBAC engine for Kubernetes pods. These security defaults prevent non-admin users from mounting host paths into pods or starting privileged pods.<\/p><\/blockquote>\n<p>\u8a33: PSP\u306f\u3001Kubernetes\u306ePod\u7528\u306bMKE RBAC\u30a8\u30f3\u30b8\u30f3\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u4e0a\u66f8\u304d\u3057\u307e\u305b\u3093\u3002\u3053\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306f\u3001\u975e\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u304c\u30db\u30b9\u30c8\u30d1\u30b9\u3092Pod\u306b\u30de\u30a6\u30f3\u30c8\u3057\u305f\u308a\u3001\u7279\u6a29Pod\u3092\u8d77\u52d5\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.mirantis.com\/mke\/3.4\/ops\/authorize-rolebased-access\/access-control-model.html#secure-kubernetes-defaults\">Secure Kubernetes defaults<\/a><\/li>\n<\/ul>\n<blockquote><p>For cluster security, only MKE admin users and service accounts that are granted the cluster-admin ClusterRole for all Kubernetes namespaces via a ClusterRoleBinding can deploy pods with privileged options. This prevents a platform user from being able to bypass the Universal Control Plane Security Model.<\/p><\/blockquote>\n<p>\u8a33: \u30af\u30e9\u30b9\u30bf\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u305f\u3081\u3001ClusterRoleBinding\u306b\u3088\u3063\u3066\u3059\u3079\u3066\u306eKubernetes Namespace\u306b\u5bfe\u3057\u3066cluster-admin ClusterRole\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308bMKE\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u3068ServiceAccount\u306e\u307f\u304c\u3001\u7279\u6a29\u30aa\u30d7\u30b7\u30e7\u30f3\u3067Pod\u3092\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4e00\u822c\u30e6\u30fc\u30b6\u304cUCP\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30e2\u30c7\u30eb\u3092\u30d0\u30a4\u30d1\u30b9\u3059\u308b\u3053\u3068\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u306b\u3088\u308a\u3001\u307e\u305a\u6700\u521d\u306b\u601d\u3044\u3064\u304f\u306e\u306fcluster-admin ClusterRole\u3092\u300cgitlab-runner\u300dNamespace\u306e\u975e\u7279\u6a29ServiceAccount\u3067\u3042\u308b\u300cgitlab-runner-gitlab-runner\u300d\u306b\u7d50\u3073\u3064\u3051\u308b\u3053\u3068\u3067\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u30af\u30e9\u30b9\u30bf\u7ba1\u7406\u8005\u306e\u30ed\u30fc\u30eb\u3067\u3042\u308bcluster-admin ClusterRole\u3092\u3080\u3084\u307f\u306b\u4e00\u822c\u30e6\u30fc\u30b6\u3084ServiceAccount\u306b\u7d50\u3073\u3064\u3051\u308b\u3053\u3068\u306f\u3001\u30af\u30e9\u30b9\u30bf\u5168\u4f53\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u4f4e\u4e0b\u3055\u305b\u308b\u305f\u3081\u907f\u3051\u308b\u3079\u304d\u884c\u70ba\u3067\u3059\u3002\u672c\u7a3f\u3067\u306f\u305d\u308c\u3092\u627f\u77e5\u3057\u305f\u4e0a\u3067\u3001\u5b9f\u9a13\u7684\u306a\u5bfe\u7b56\u3068\u3057\u3066\u3053\u308c\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001cluster-admin ClusterRole\u3092 gitlab-runner-gitlab-runner ServiceAccount\u306b\u7d50\u3073\u3064\u3051\u308bClusterRoleBinding\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002YAML\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\napiVersion: rbac.authorization.k8s.io\/v1\nkind: ClusterRoleBinding\nmetadata:\nname: gitlab-runner-cluster-admin\nsubjects:\n- kind: ServiceAccount\nname: gitlab-runner-gitlab-runner\nnamespace: gitlab-runner\nroleRef:\nkind: ClusterRole\nname: cluster-admin\napiGroup: rbac.authorization.k8s.io\n<\/pre>\n<p>\u3053\u308c\u3092 kubectl apply \u3057\u3001GitLab CI\/CD\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">\nPreparing the &quot;kubernetes&quot; executor\nUsing Kubernetes namespace: gitlab-runner\nUsing Kubernetes executor with image docker:18.09 ...\nUsing attach strategy to execute scripts...\nPreparing environment\nWaiting for pod gitlab-runner\/runner-xphxzza-project-1154-concurrent-0dzn8d to be running, status is Pending\nWaiting for pod gitlab-runner\/runner-xphxzza-project-1154-concurrent-0dzn8d to be running, status is Pending\nContainersNotReady: &quot;containers with unready status: [build helper svc-0]&quot;\nContainersNotReady: &quot;containers with unready status: [build helper svc-0]&quot;\nRunning on runner-xphxzza-project-1154-concurrent-0dzn8d via gitlab-runner-gitlab-runner-7dbdbd96cd-9glws...\nGetting source from Git repository\n:\nJob succeeded\n<\/pre>\n<p>\u7121\u4e8b\u30d3\u30eb\u30c9\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u524d\u8ff0\u306e\u901a\u308a\u3001cluster-admin ClusterRole\u3092\u3080\u3084\u307f\u306b\u4e00\u822c\u30e6\u30fc\u30b6\u3084ServiceAccount\u306b\u7d50\u3073\u3064\u3051\u308b\u3053\u3068\u306f\u907f\u3051\u308b\u3079\u304d\u3067\u3059\u3002\u6b21\u9805\u3067\u306f\u5225\u306e\u5bfe\u7b56\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<\/p>\n<h2>\u5bfe\u7b562: \u72ec\u81ea\u306bPSP\u3092\u4f5c\u6210\u3057\u3001ServiceAccount\u306b\u7d50\u3073\u3064\u3051\u3001Privileged\u6a29\u9650\u3092\u8a31\u53ef\u3059\u308b<\/h2>\n<p>cluster-admin ClusterRole\u3092\u4e00\u822c\u30e6\u30fc\u30b6\u3084ServiceAccount\u306b\u7d50\u3073\u3064\u3051\u3066\u306f\u3044\u3051\u306a\u3044\u306a\u3089\u3070\u3001\u6a29\u9650\u3092\u7d5e\u3063\u305f\u30eb\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u5fc5\u8981\u3068\u306a\u308b\u306e\u306f\u3001<\/p>\n<ul>\n<li>Privileged\u30b3\u30f3\u30c6\u30ca\u5b9f\u884c\u306e\u8a31\u53ef\u3092\u306f\u3058\u3081\u3001\u305d\u306e\u4ed6 GitLab Runner \u5b9f\u884c\u306b\u5fc5\u8981\u306a\u6a29\u9650\u3082\u542b\u3080<a href=\"https:\/\/kubernetes.io\/docs\/concepts\/policy\/pod-security-policy\/\">PodSecurityPolicy<\/a><\/li>\n<li>\u305d\u306ePodSecurityPolicy (PSP)\u3092\u5229\u7528\u3057\u3001\u305d\u306e\u4ed6 GitLab Runner \u5b9f\u884c\u306b\u5fc5\u8981\u306a\u30eb\u30fc\u30eb\u3092\u542b\u3080<a href=\"https:\/\/kubernetes.io\/ja\/docs\/reference\/access-authn-authz\/rbac\/\">ClusterRole<\/a><\/li>\n<li>\u305d\u306eClusterRole\u3068\u300cgitlab-runner\u300dNamespace\u306e\u975e\u7279\u6a29ServiceAccount\u3067\u3042\u308b\u300cgitlab-runner-gitlab-runner\u300d\u3092\u7d50\u3073\u3064\u3051\u308b<a href=\"https:\/\/kubernetes.io\/ja\/docs\/reference\/access-authn-authz\/rbac\/\">ClusterRoleBinding<\/a><\/li>\n<\/ul>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002\u5177\u4f53\u7684\u306aYAML\u30d5\u30a1\u30a4\u30eb\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002PSP\u306fMKE\u306b\u7d44\u307f\u8fbc\u307f\u306e<a href=\"https:\/\/docs.mirantis.com\/mke\/3.4\/ops\/deploy-apps-k8s\/pod-security-policies.html#default-pod-security-policies-in-mke\">unprivileged PSP<\/a>\u3092\u53c2\u8003\u3068\u3057\u3001GitLab Runner \u5b9f\u884c\u306b\u5fc5\u8981\u306a spec.privileged \u3068 spec.allowPrivilegeEscalation \u3092 true \u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\napiVersion: policy\/v1beta1\nkind: PodSecurityPolicy\nmetadata:\nname: gitlab-runner-psp\nspec:\nprivileged: true\nallowPrivilegeEscalation: true\nvolumes:\n- &#039;*&#039;\nhostNetwork: false\nhostPorts:\n- min: 0\nmax: 65535\nhostIPC: false\nhostPID: false\nrunAsUser:\nrule: &#039;RunAsAny&#039;\nseLinux:\nrule: &#039;RunAsAny&#039;\nsupplementalGroups:\nrule: &#039;RunAsAny&#039;\nfsGroup:\nrule: &#039;RunAsAny&#039;\n<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\napiVersion: rbac.authorization.k8s.io\/v1\nkind: ClusterRole\nmetadata:\nname: gitlab-runner-psp-cr\nannotations:\nrbac.authorization.kubernetes.io\/autoupdate: &quot;true&quot;\nrules:\n- apiGroups: [&#039;policy&#039;]\nresources: [&#039;podsecuritypolicies&#039;]\nverbs: [&#039;use&#039;]\nresources:\n- gitlab-runner-psp\n- apiGroups: [&quot;*&quot;]\nresources: [&quot;*&quot;]\nverbs: [&quot;*&quot;]\n- nonResourceURLs: [&quot;*&quot;]\nverbs: [&quot;*&quot;]\n<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">\napiVersion: rbac.authorization.k8s.io\/v1\nkind: ClusterRoleBinding\nmetadata:\nname: gitlab-runner-psp-crb\nsubjects:\n- kind: ServiceAccount\nname: gitlab-runner-gitlab-runner\nnamespace: gitlab-runner\nroleRef:\nkind: ClusterRole\nname: gitlab-runner-psp-cr\napiGroup: rbac.authorization.k8s.io\n<\/pre>\n<p>\u3053\u308c\u3092 kubectl apply \u3057\u3001GitLab CI\/CD\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">\nPreparing the &quot;kubernetes&quot; executor\nUsing Kubernetes namespace: gitlab-runner\nUsing Kubernetes executor with image docker:18.09 ...\nUsing attach strategy to execute scripts...\nPreparing environment\nERROR: Job failed (system failure): prepare environment: setting up build pod: pods &quot;runner-lfnhz3za-project-1154-concurrent-0&quot; is forbidden: non-admin user &quot;gitlab-runner:gitlab-runner-gitlab-runner&quot; [service account &quot;gitlab-runner:default&quot;]. The configured privileged attributes access for non-admin users (&quot;[]&quot;)(&quot;[]&quot;) and for service accounts (&quot;[]&quot;)(&quot;[]&quot;) lack required permissions to use attributes [privileged] for resource . Check https:\/\/docs.gitlab.com\/runner\/shells\/index.html#shell-profile-loading for more information\n<\/pre>\n<p>\u4e00\u756a\u6700\u521d\u306b\u906d\u9047\u3057\u305f\u30a8\u30e9\u30fc\u306b\u9006\u623b\u308a\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u4f55\u304c\u554f\u984c\u306a\u306e\u3067\u3057\u3087\u3046\u304b\uff1f \u5c11\u3057\u524d\u306b\u5f15\u7528\u3057\u305f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u518d\u63b2\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.mirantis.com\/mke\/3.4\/ops\/deploy-apps-k8s\/pod-security-policies.html#use-the-unprivileged-policy\">Use the unprivileged policy<\/a><\/li>\n<\/ul>\n<blockquote><p>PSPs do not override security defaults built into the MKE RBAC engine for Kubernetes pods. These security defaults prevent non-admin users from mounting host paths into pods or starting privileged pods.<\/p><\/blockquote>\n<p>\u8a33: PSP\u306f\u3001Kubernetes\u306ePod\u7528\u306bMKE RBAC\u30a8\u30f3\u30b8\u30f3\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u4e0a\u66f8\u304d\u3057\u307e\u305b\u3093\u3002\u3053\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306f\u3001\u975e\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u304c\u30db\u30b9\u30c8\u30d1\u30b9\u3092Pod\u306b\u30de\u30a6\u30f3\u30c8\u3057\u305f\u308a\u3001\u7279\u6a29Pod\u3092\u8d77\u52d5\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4eca\u56de\u5b9a\u7fa9\u3057\u305f Privileged \u3092\u8a31\u53ef\u3059\u308b PSP \u3067\u306f\u3001MKE\u7d44\u307f\u8fbc\u307f\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u30d1\u30b9\u3067\u304d\u306a\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u304b\u306e\u7b54\u3048\u306f\u3001\u3084\u306f\u308a\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.mirantis.com\/mke\/3.4\/rn-3-4\/3-4-2.html\">3.4.2<\/a><\/li>\n<\/ul>\n<blockquote><p>Administrators can now give permission to use one or more privileged pod attributes (such as specifying host networking usage or host IPC) to groups of non-administrator user accounts or non-cluster-admin service accounts. Administrators can choose different sets of attributes for each group (MKE-8252).<\/p><\/blockquote>\n<p>\u8a33: \u7ba1\u7406\u8005\u306f\u3001\u975e\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30b0\u30eb\u30fc\u30d7\u3084\u975e\u30af\u30e9\u30b9\u30bf\u7ba1\u7406\u8005ServiceAccount\u306b\u30011\u3064\u4ee5\u4e0a\u306e\u7279\u6a29Pod\u5c5e\u6027(\u30db\u30b9\u30c8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u4f7f\u7528\u3084\u30db\u30b9\u30c8IPC\u306e\u6307\u5b9a\u306a\u3069)\u3092\u4f7f\u7528\u3059\u308b\u6a29\u9650\u3092\u4e0e\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u7ba1\u7406\u8005\u306f\u3001\u5404\u30b0\u30eb\u30fc\u30d7\u3054\u3068\u306b\u7570\u306a\u308b\u5c5e\u6027\u30bb\u30c3\u30c8\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059 (MKE-8252)\u3002<\/p>\n<p>MKE 3.4.2\u3067\u5b9f\u88c5\u3055\u308c\u305f\u3053\u306e\u6a5f\u80fd\u306b\u3088\u308a\u3001MKE\u7d44\u307f\u8fbc\u307f\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u4e00\u5b9a\u306e\u8a31\u53ef\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5177\u4f53\u7684\u306b\u306fMKE\u306b\u7ba1\u7406\u8005\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u5de6\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u304b\u3089admin \u2192 Admin Settings \u2192 Orchestration\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-45276\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/10\/02-service-account-privileges.png\" alt=\"\" width=\"879\" height=\"1058\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/10\/02-service-account-privileges.png 879w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/10\/02-service-account-privileges-299x360.png 299w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/10\/02-service-account-privileges-851x1024.png 851w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/10\/02-service-account-privileges-768x924.png 768w\" sizes=\"auto, (max-width: 879px) 100vw, 879px\" \/><\/p>\n<p>\u3053\u306e\u300cServicve account privileges\u300d\u306e\u30d5\u30a9\u30fc\u30e0\u306b\u300cgitlab-runner:gitlab-runner-gitlab-runner\u300d(gitlab-runner Namespace\u306egitlab-runner-gitlab-runner ServiceAccount\u306e\u610f)\u3092\u5165\u529b\u3057\u3001\u300cprivileged\u300d\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001\u300cSave\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067GitLab CI\/CD\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\">\nPreparing the &quot;kubernetes&quot; executor\nUsing Kubernetes namespace: gitlab-runner\nUsing Kubernetes executor with image docker:18.09 ...\nUsing attach strategy to execute scripts...\nPreparing environment\nWaiting for pod gitlab-runner\/runner-lfnhz3za-project-1154-concurrent-0sqtln to be running, status is Pending\nWaiting for pod gitlab-runner\/runner-lfnhz3za-project-1154-concurrent-0sqtln to be running, status is Pending\nContainersNotInitialized: &quot;containers with incomplete status: [init-permissions]&quot;\nContainersNotReady: &quot;containers with unready status: [build helper svc-0]&quot;\nContainersNotReady: &quot;containers with unready status: [build helper svc-0]&quot;\nWaiting for pod gitlab-runner\/runner-lfnhz3za-project-1154-concurrent-0sqtln to be running, status is Pending\nContainersNotReady: &quot;containers with unready status: [build helper svc-0]&quot;\nContainersNotReady: &quot;containers with unready status: [build helper svc-0]&quot;\nRunning on runner-lfnhz3za-project-1154-concurrent-0sqtln via gitlab-runner-gitlab-runner-7dbdbd96cd-6mwqq...\nGetting source from Git repository\n:\nJob succeeded\n<\/pre>\n<p>\u7121\u4e8b\u30d3\u30eb\u30c9\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u672c\u7a3f\u3067\u306fMirantis Kubernetes Engine (MKE)\u306bGitLab Runner\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3001MKE\u306e\u7d44\u307f\u8fbc\u307f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u69cb\u306b\u7559\u610f\u3057\u3064\u3064RBAC\u3084PSP\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u3001\u52d5\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u307e\u3067\u3092\u898b\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>GitLab Runner\u306e\u3088\u3046\u306b\u3001\u3088\u308a\u4e0a\u4f4d\u306e\u6a29\u9650\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u672c\u7a3f\u3067\u7d39\u4ecb\u3057\u305f\u3088\u3046\u306a\u8a2d\u5b9a\u5909\u66f4\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u304c\u3001MKE\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u69cb\u306f\u4e00\u822c\u30e6\u30fc\u30b6\u304c\u30af\u30e9\u30b9\u30bf\u306b\u5bfe\u3057\u3066\u5371\u967a\u306a\u64cd\u4f5c\u304c\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002Kubernetes\u3092\u5b89\u5168\u306b\u5229\u7528\u3057\u305f\u3044\u5834\u5408\u3001Mirantis Kuberntes Engine (MKE)\u3092\u3054\u691c\u8a0e\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mirantis Kubernetes Engine (MKE) (\u65e7Docker Enterprise &amp; Universal Control Plane (UCP))\u3068\u306f\u3001Kubernetes\u3068Swarm\u306e\u3069 [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":37004,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[31,43,109,122,540],"tags":[],"class_list":["post-45274","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-higuchi","category-docker","category-gitlab","category-kubernetes","category-mirantis"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"d-higuchi, Docker, GitLab, Kubernetes, Mirantis |Mirantis Kubernetes Engine (MKE) (\u65e7Docker Enterprise &amp; Universal Control\" \/>\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.creationline.com\/tech-blog\/cloudnative\/docker\/45274\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"d-higuchi, Docker, GitLab, Kubernetes, Mirantis |Mirantis Kubernetes Engine (MKE) (\u65e7Docker Enterprise &amp; Universal Control\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-14T06:00:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-29T06:18:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/09\/mirantislogo150_150.png\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"8\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab\",\"datePublished\":\"2021-10-14T06:00:10+00:00\",\"dateModified\":\"2023-08-29T06:18:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274\"},\"wordCount\":1602,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/mirantislogo150_150.png\",\"articleSection\":[\"d-higuchi\",\"Docker\",\"GitLab\",\"Kubernetes\",\"Mirantis\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274\",\"name\":\"Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/mirantislogo150_150.png\",\"datePublished\":\"2021-10-14T06:00:10+00:00\",\"dateModified\":\"2023-08-29T06:18:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"d-higuchi, Docker, GitLab, Kubernetes, Mirantis |Mirantis Kubernetes Engine (MKE) (\u65e7Docker Enterprise &amp; Universal Control\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/mirantislogo150_150.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/mirantislogo150_150.png\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\\\/45274#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Docker\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/docker\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"d-higuchi, Docker, GitLab, Kubernetes, Mirantis |Mirantis Kubernetes Engine (MKE) (\u65e7Docker Enterprise &amp; Universal Control","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.creationline.com\/tech-blog\/cloudnative\/docker\/45274","og_locale":"ja_JP","og_type":"article","og_title":"Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"d-higuchi, Docker, GitLab, Kubernetes, Mirantis |Mirantis Kubernetes Engine (MKE) (\u65e7Docker Enterprise &amp; Universal Control","og_url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2021-10-14T06:00:10+00:00","article_modified_time":"2023-08-29T06:18:49+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/09\/mirantislogo150_150.png","type":"image\/png"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"8\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab","datePublished":"2021-10-14T06:00:10+00:00","dateModified":"2023-08-29T06:18:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274"},"wordCount":1602,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/09\/mirantislogo150_150.png","articleSection":["d-higuchi","Docker","GitLab","Kubernetes","Mirantis"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274","url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274","name":"Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/09\/mirantislogo150_150.png","datePublished":"2021-10-14T06:00:10+00:00","dateModified":"2023-08-29T06:18:49+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"d-higuchi, Docker, GitLab, Kubernetes, Mirantis |Mirantis Kubernetes Engine (MKE) (\u65e7Docker Enterprise &amp; Universal Control","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/09\/mirantislogo150_150.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/09\/mirantislogo150_150.png","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker\/45274#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative"},{"@type":"ListItem","position":3,"name":"Docker","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/docker"},{"@type":"ListItem","position":4,"name":"Mirantis Kubernetes Engine (MKE)\u3067GitLab Runner\u3092\u52d5\u304b\u305d\u3046 \u301c RBAC\u3084PSP\u306e\u89b3\u70b9\u304b\u3089 #mirantis #kubernetes #k8s #rbac #podsecuritypolicy #docker #gitlab"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","caption":"Daisuke Higuchi"},"description":"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/45274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=45274"}],"version-history":[{"count":11,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/45274\/revisions"}],"predecessor-version":[{"id":65834,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/45274\/revisions\/65834"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/37004"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=45274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=45274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=45274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}