Skip to content

Commit 59b88bd

Browse files
author
gh-pages-bot
committed
deploy: d04f85f
1 parent 04f8ded commit 59b88bd

File tree

459 files changed

+439
-439
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

459 files changed

+439
-439
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&amp;display=swap" crossorigin="anonymous">
1818
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&amp;display=swap" crossorigin="anonymous">
1919
<script src="/js/observer.js"></script><link rel="stylesheet" href="/assets/css/styles.5926c040.css">
20-
<script src="/assets/js/runtime~main.307bd617.js" defer="defer"></script>
20+
<script src="/assets/js/runtime~main.4092ff94.js" defer="defer"></script>
2121
<script src="/assets/js/main.61d9386a.js" defer="defer"></script>
2222
</head>
2323
<body class="navigation-with-keyboard">

assets/js/28f0e6ac.4dd43db9.js renamed to assets/js/28f0e6ac.5e930c4d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
- level: Metadata
193193
omitStages:
194194
- "RequestReceived"
195-
`}}},22365:(e,s,t)=>{t.d(s,{I:()=>o});const o=()=>"/"},41968:(e,s,t)=>{t.d(s,{R:()=>i});var o=t(96540),r=t(68553),n=t(74848);const i=({yamlContent:e,onCloseOtherModals:s})=>{const[t,i]=(0,o.useState)(!1),[a,u]=(0,o.useState)(!1),[c,l]=(0,o.useState)("300px"),p=(0,o.useRef)(null),d=(0,o.useMemo)(()=>e.split("\n").length,[e]);(0,o.useEffect)(()=>{const e=.65*window.innerHeight,s=20*d,t=Math.min(Math.max(s,200),e);l(`${t}px`)},[d]),(0,o.useEffect)(()=>{const e=e=>{"Escape"===e.key&&t&&i(!1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{onClick:()=>{s?.(),i(!0),setTimeout(()=>p.current?.focus(),0)},style:{whiteSpace:"nowrap",padding:"0.35rem 0.75rem",backgroundColor:"#2b2b2b",color:"#fff",border:"1px solid #555",borderRadius:"6px",fontSize:"0.85rem",fontWeight:500,cursor:"pointer"},children:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440"}),t&&(0,n.jsx)("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1e3,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)("dialog",{ref:p,open:!0,style:{border:"none",background:"#1e1e1e",borderRadius:"8px",width:"90vw",maxWidth:"960px",maxHeight:"90vh",overflow:"auto",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.5)"},children:(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,n.jsx)("div",{style:{padding:"1rem",fontWeight:"bold",color:"#ccc"},children:"\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438"}),(0,n.jsx)("div",{style:{padding:"0 1rem 1rem",overflow:"auto",maxHeight:"70vh"},children:(0,n.jsx)(r.Ay,{height:c,defaultLanguage:"yaml",defaultValue:e,theme:"vs-dark",options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontFamily:'"Fira Code", "Courier New", monospace',fontSize:16}})}),(0,n.jsxs)("div",{style:{textAlign:"right",padding:"0.5rem 1rem"},children:[(0,n.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(e).then(()=>{u(!0),setTimeout(()=>u(!1),2e3)})},style:{marginRight:"0.5rem",padding:"0.4rem 0.8rem",background:"#007acc",color:"#fff",border:"none",borderRadius:"4px",fontSize:"0.85rem",cursor:"pointer"},children:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c"}),(0,n.jsx)("button",{onClick:()=>i(!1),style:{padding:"0.4rem 0.8rem",background:"#444",color:"#fff",border:"none",borderRadius:"4px",fontSize:"0.85rem",cursor:"pointer"},children:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"})]})]})})}),a&&(0,n.jsx)("div",{style:{position:"fixed",bottom:"20px",right:"20px",backgroundColor:"#007acc",color:"#fff",padding:"0.5rem 1rem",borderRadius:"4px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.2)",fontSize:"0.85rem",zIndex:1100},children:"\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430"})]})}},54944:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>p,contentTitle:()=>l,default:()=>m,frontMatter:()=>c,metadata:()=>o,toc:()=>d});var o=t(63069),r=t(74848),n=t(28453),i=(t(76331),t(9792),t(68747)),a=t(60513),u=(t(41968),t(22365));t(9675);const c={title:"Kubernetes pods/exec",description:"\u041f\u0435\u0440\u0435\u0445\u043e\u0434 pods/exec \u043d\u0430 WebSocket (GET \u0432\u043c\u0435\u0441\u0442\u043e POST), \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0430 RBAC \u0438 \u0440\u0438\u0441\u043a\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0432 Kubernetes.",date:new Date("2025-08-18T00:00:00.000Z"),slug:"kubernetes-pods-exec",authors:[{name:"\u041f\u0443\u0442\u0438\u043b\u0438\u043d \u0414\u043c\u0438\u0442\u0440\u0438\u0439 \u041b\u044c\u0432\u043e\u0432\u0438\u0447",title:"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440",url:"https://t.me/bezumniy_kot_work",image_url:"https://avatars.githubusercontent.com/u/107264732?v=4",socials:{github:"FR-Solution"}}],toc_min_heading_level:2,toc_max_heading_level:2,tags:["Kubernetes","RBAC","Security","pods/exec"]},l=void 0,p={authorsImageUrls:[void 0]},d=[];function g(e){const s={p:"p",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("h3",{children:[" Kubernetes pods/exec ",(0,r.jsx)("span",{style:{color:"#1cc5ac"},children:"#"})," "]}),"\n",(0,r.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"flex-start",justifyContent:"space-between",gap:"30px",marginTop:"1.5rem"},children:[(0,r.jsx)("div",{style:{flex:"1 1 58%",minWidth:"280px",maxWidth:"620px"},children:(0,r.jsx)("p",{children:(0,r.jsxs)(s.p,{children:[(0,r.jsx)("code",{children:"pods/exec"})," \u2014 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.\n\u041d\u043e \u0432\u043e\u0442 \u0432\u0430\u043c \u0441\u0445\u043e\u0434\u0443 \u0437\u0430\u0434\u0430\u0447\u0430: \u043a\u0430\u043a \u0432\u044b \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0435, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a\u0430\u044f \u0440\u043e\u043b\u044c \u0432 Kubernetes, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0434\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0432 \u0430\u0431\u0441\u0443\u0440\u0434\u043d\u0443\u044e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u0447\u0442\u043e \u0440\u0435\u0441\u0443\u0440\u0441 Secret \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f?"]})})}),(0,r.jsx)("div",{style:{flex:"1 1 35%",minWidth:"200px",textAlign:"center",marginTop:"-7rem"},children:(0,r.jsx)("img",{src:`${(0,u.I)()}img/blog/audit-policies-promo.png`,alt:"pods/exec audit",style:{width:"100%",maxWidth:"330px",filter:"drop-shadow(0 0 30px rgba(196, 202, 255, 0.2))",transition:"transform 0.3s ease-in-out"}})})]}),"\n",(0,r.jsx)(i.A,{language:"bash",children:a.A`
195+
`}}},22365:(e,s,t)=>{t.d(s,{I:()=>o});const o=()=>"/"},41968:(e,s,t)=>{t.d(s,{R:()=>i});var o=t(96540),r=t(68553),n=t(74848);const i=({yamlContent:e,onCloseOtherModals:s})=>{const[t,i]=(0,o.useState)(!1),[a,u]=(0,o.useState)(!1),[c,l]=(0,o.useState)("300px"),p=(0,o.useRef)(null),d=(0,o.useMemo)(()=>e.split("\n").length,[e]);(0,o.useEffect)(()=>{const e=.65*window.innerHeight,s=20*d,t=Math.min(Math.max(s,200),e);l(`${t}px`)},[d]),(0,o.useEffect)(()=>{const e=e=>{"Escape"===e.key&&t&&i(!1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{onClick:()=>{s?.(),i(!0),setTimeout(()=>p.current?.focus(),0)},style:{whiteSpace:"nowrap",padding:"0.35rem 0.75rem",backgroundColor:"#2b2b2b",color:"#fff",border:"1px solid #555",borderRadius:"6px",fontSize:"0.85rem",fontWeight:500,cursor:"pointer"},children:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440"}),t&&(0,n.jsx)("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1e3,display:"flex",justifyContent:"center",alignItems:"center"},children:(0,n.jsx)("dialog",{ref:p,open:!0,style:{border:"none",background:"#1e1e1e",borderRadius:"8px",width:"90vw",maxWidth:"960px",maxHeight:"90vh",overflow:"auto",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.5)"},children:(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,n.jsx)("div",{style:{padding:"1rem",fontWeight:"bold",color:"#ccc"},children:"\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438"}),(0,n.jsx)("div",{style:{padding:"0 1rem 1rem",overflow:"auto",maxHeight:"70vh"},children:(0,n.jsx)(r.Ay,{height:c,defaultLanguage:"yaml",defaultValue:e,theme:"vs-dark",options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontFamily:'"Fira Code", "Courier New", monospace',fontSize:16}})}),(0,n.jsxs)("div",{style:{textAlign:"right",padding:"0.5rem 1rem"},children:[(0,n.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(e).then(()=>{u(!0),setTimeout(()=>u(!1),2e3)})},style:{marginRight:"0.5rem",padding:"0.4rem 0.8rem",background:"#007acc",color:"#fff",border:"none",borderRadius:"4px",fontSize:"0.85rem",cursor:"pointer"},children:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c"}),(0,n.jsx)("button",{onClick:()=>i(!1),style:{padding:"0.4rem 0.8rem",background:"#444",color:"#fff",border:"none",borderRadius:"4px",fontSize:"0.85rem",cursor:"pointer"},children:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"})]})]})})}),a&&(0,n.jsx)("div",{style:{position:"fixed",bottom:"20px",right:"20px",backgroundColor:"#007acc",color:"#fff",padding:"0.5rem 1rem",borderRadius:"4px",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.2)",fontSize:"0.85rem",zIndex:1100},children:"\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430"})]})}},54944:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>p,contentTitle:()=>l,default:()=>m,frontMatter:()=>c,metadata:()=>o,toc:()=>d});var o=t(63069),r=t(74848),n=t(28453),i=(t(76331),t(9792),t(68747)),a=t(60513),u=(t(41968),t(22365));t(9675);const c={title:"Kubernetes pods/exec",description:"\u041f\u0435\u0440\u0435\u0445\u043e\u0434 pods/exec \u043d\u0430 WebSocket (GET \u0432\u043c\u0435\u0441\u0442\u043e POST), \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043d\u0430 RBAC \u0438 \u0440\u0438\u0441\u043a\u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0432 Kubernetes.",date:new Date("2025-08-18T00:00:00.000Z"),slug:"kubernetes-pods-exec",authors:[{name:"\u041f\u0443\u0442\u0438\u043b\u0438\u043d \u0414\u043c\u0438\u0442\u0440\u0438\u0439 \u041b\u044c\u0432\u043e\u0432\u0438\u0447",title:"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440",url:"https://t.me/bezumniy_kot_work",image_url:"https://avatars.githubusercontent.com/u/107264732?v=4",socials:{github:"FR-Solution"}}],toc_min_heading_level:2,toc_max_heading_level:2,tags:["Kubernetes","RBAC","Security","pods/exec"]},l=void 0,p={authorsImageUrls:[void 0]},d=[];function g(e){const s={p:"p",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("h3",{children:[" Kubernetes pods/exec ",(0,r.jsx)("span",{style:{color:"#1cc5ac"},children:"#"})," "]}),"\n",(0,r.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"flex-start",justifyContent:"space-between",gap:"30px",marginTop:"1.5rem"},children:[(0,r.jsx)("div",{style:{flex:"1 1 58%",minWidth:"280px",maxWidth:"620px"},children:(0,r.jsx)("p",{children:(0,r.jsxs)(s.p,{children:[(0,r.jsx)("code",{children:"pods/exec"})," \u2014 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.\n\u041d\u043e \u0432\u043e\u0442 \u0432\u0430\u043c \u0441\u0445\u043e\u0434\u0443 \u0437\u0430\u0434\u0430\u0447\u0430: \u043a\u0430\u043a \u0432\u044b \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0435, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a\u0430\u044f \u0440\u043e\u043b\u044c \u0432 Kubernetes, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0434\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0432 \u0430\u0431\u0441\u0443\u0440\u0434\u043d\u0443\u044e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e, \u0447\u0442\u043e \u0440\u0435\u0441\u0443\u0440\u0441 Secret \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f?"]})})}),(0,r.jsx)("div",{style:{flex:"1 1 35%",minWidth:"200px",textAlign:"center",marginTop:"-7rem"},children:(0,r.jsx)("img",{src:`${(0,u.I)()}img/blog/pod-exec-promo.png`,alt:"pods/exec audit",style:{width:"100%",maxWidth:"330px",filter:"drop-shadow(0 0 30px rgba(196, 202, 255, 0.2))",transition:"transform 0.3s ease-in-out"}})})]}),"\n",(0,r.jsx)(i.A,{language:"bash",children:a.A`
196196
---
197197
apiVersion: rbac.authorization.k8s.io/v1
198198
kind: ClusterRole

0 commit comments

Comments
 (0)