content large_stringlengths 3 20.5k | url large_stringlengths 54 193 | branch large_stringclasses 4
values | source large_stringclasses 42
values | embeddings listlengths 384 384 | score float64 -0.21 0.65 |
|---|---|---|---|---|---|
this example you can use SSH to install the profiles, but other approaches are discussed in [Setting up nodes with profiles](#setting-up-nodes-with-profiles). ```shell # This example assumes that node names match host names, and are reachable via SSH. NODES=($( kubectl get node -o jsonpath='{.items[\*].status.addresses... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/apparmor.md | main | kubernetes | [
0.04114418849349022,
0.05123833939433098,
0.010723494924604893,
-0.028289664536714554,
-0.03483803570270538,
-0.0382063128054142,
-0.022168010473251343,
0.05442766845226288,
0.04298587888479233,
0.022163135930895805,
0.00795147754251957,
-0.08318904042243958,
0.07952775061130524,
0.0168944... | 0.067816 |
Use the documentation version selector to view the documentation with this deprecated API. {{< /caution >}} ### AppArmor profile within security context {#appArmorProfile} You can specify the `appArmorProfile` on either a container's `securityContext` or on a Pod's `securityContext`. If the profile is set at the pod le... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/apparmor.md | main | kubernetes | [
0.03151295706629753,
0.07565706968307495,
0.020466050133109093,
-0.017898552119731903,
0.09285993129014969,
-0.022188691422343254,
-0.010458970442414284,
0.09666579216718674,
-0.034498509019613266,
0.006103519815951586,
0.03611418977379799,
-0.059234458953142166,
-0.011508990079164505,
0.0... | 0.104153 |
{{% alert title="Note" %}} This tutorial applies only for new clusters. {{% /alert %}} Pod Security is an admission controller that carries out checks against the Kubernetes [Pod Security Standards](/docs/concepts/security/pod-security-standards/) when new pods are created. It is a feature GA'ed in v1.25. This tutorial... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/cluster-level-pss.md | main | kubernetes | [
0.05837471783161163,
0.0011229654774069786,
0.026817720383405685,
0.003998348489403725,
0.04591244459152222,
-0.013314750976860523,
0.019830351695418358,
-0.02429499477148056,
0.03487451747059822,
0.0398259311914444,
0.02757817879319191,
-0.034655891358852386,
0.003463897155597806,
0.01576... | 0.17451 |
hostPath volumes, allowPrivilegeEscalation != false, unrestricted capabilities, restricted volume types, runAsNonRoot != true Warning: kindnet-vzj42: non-default capabilities, host namespaces, hostPath volumes, allowPrivilegeEscalation != false, unrestricted capabilities, restricted volume types, runAsNonRoot != true, ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/cluster-level-pss.md | main | kubernetes | [
0.053780775517225266,
-0.02865583635866642,
0.003511349903419614,
-0.03824666887521744,
0.016292717307806015,
0.006536639761179686,
-0.040295716375112534,
-0.035089172422885895,
0.032358791679143906,
0.0655631273984909,
0.010668064467608929,
-0.06719645112752914,
-0.0066036563366651535,
0.... | 0.145622 |
now use your cluster with: kubectl cluster-info --context kind-psa-with-cluster-pss Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community π ``` 1. Point kubectl to the cluster: ```shell kubectl cluster-info --context kind-psa-with-cluster-pss ``` The output is similar to this: ``` ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/cluster-level-pss.md | main | kubernetes | [
0.023310044780373573,
-0.0036574830301105976,
-0.01602492481470108,
0.030435340479016304,
-0.04203064367175102,
0.03448641672730446,
-0.04373064637184143,
-0.006647903937846422,
0.06865672767162323,
0.09046610444784164,
-0.04151047021150589,
-0.05937619507312775,
-0.05349080264568329,
-0.0... | 0.108901 |
{{< feature-state for\_k8s\_version="v1.19" state="stable" >}} Seccomp stands for secure computing mode and has been a feature of the Linux kernel since version 2.6.12. It can be used to sandbox the privileges of a process, restricting the calls it is able to make from userspace into the kernel. Kubernetes lets you aut... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/seccomp.md | main | kubernetes | [
0.027684815227985382,
0.013379751704633236,
0.026118481531739235,
-0.0024355535861104727,
-0.02560477890074253,
-0.0031473676208406687,
0.06641070544719696,
0.012598828412592411,
-0.019100038334727287,
0.015392673201858997,
-0.014009667560458183,
-0.10453638434410095,
0.014519339427351952,
... | 0.201612 |
file named `kind.yaml`: ```shell curl -L -O https://k8s.io/examples/pods/security/seccomp/kind.yaml ``` You can set a specific Kubernetes version by setting the node's container image. See [Nodes](https://kind.sigs.k8s.io/docs/user/configuration/#nodes) within the kind documentation about configuration for more details... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/seccomp.md | main | kubernetes | [
-0.0012452953960746527,
0.04707430675625801,
0.09918642044067383,
0.018609032034873962,
-0.03713468834757805,
0.030014345422387123,
-0.005698888096958399,
-0.02456170879304409,
0.06093201786279678,
0.038934964686632156,
-0.028523240238428116,
-0.022803686559200287,
-0.03735801577568054,
-0... | 0.079071 |
the endpoint from inside the kind control plane container. ```shell kubectl expose pod audit-pod --type NodePort --port 5678 ``` Check what port the Service has been assigned on the node. ```shell kubectl get service audit-pod ``` The output is similar to: ``` NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE audit-pod Node... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/seccomp.md | main | kubernetes | [
0.04733790084719658,
0.05935298651456833,
-0.041413016617298126,
-0.008124450221657753,
0.03506501764059067,
-0.0510050430893898,
0.029467057436704636,
-0.01933344267308712,
0.07091328501701355,
0.0893411934375763,
-0.03693946823477745,
-0.029689541086554527,
-0.07178167998790741,
-0.03068... | 0.170121 |
pod violation-pod ``` ``` NAME READY STATUS RESTARTS AGE violation-pod 0/1 CrashLoopBackOff 1 6s ``` As seen in the previous example, the `http-echo` process requires quite a few syscalls. Here seccomp has been instructed to error on any syscall by setting `"defaultAction": "SCMP\_ACT\_ERRNO"`. This is extremely secure... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/seccomp.md | main | kubernetes | [
0.05123399570584297,
0.01712748035788536,
0.020924128592014313,
-0.017458423972129822,
-0.0018973650876432657,
-0.024207675829529762,
0.0049076564610004425,
0.011233949102461338,
-0.01605367846786976,
0.05393379554152489,
0.032394472509622574,
-0.025818079710006714,
-0.035175569355487823,
... | 0.198771 |
CRI-O and containerd. {{< note >}} Enabling the feature will neither change the Kubernetes `securityContext.seccompProfile` API field nor add the deprecated annotations of the workload. This provides users the possibility to rollback anytime without actually changing the workload configuration. Tools like [`crictl insp... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/seccomp.md | main | kubernetes | [
0.009127720259130001,
0.08755431324243546,
0.032647255808115005,
0.018418898805975914,
0.02076577953994274,
-0.006186680402606726,
0.023630628362298012,
-0.006260671187192202,
0.003922740928828716,
-0.02066609263420105,
0.016618721187114716,
-0.036677036434412,
0.007531038019806147,
0.0135... | 0.144244 |
{{% alert title="Note" %}} This tutorial applies only for new clusters. {{% /alert %}} Pod Security Admission is an admission controller that applies [Pod Security Standards](/docs/concepts/security/pod-security-standards/) when pods are created. It is a feature GA'ed in v1.25. In this tutorial, you will enforce the `b... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/ns-level-pss.md | main | kubernetes | [
0.04340675473213196,
0.0031550147105008364,
0.0139235258102417,
0.03451167419552803,
0.03028232418000698,
-0.007182256318628788,
0.043072644621133804,
-0.00011943767458433285,
0.02374703623354435,
0.028413545340299606,
0.0052966708317399025,
-0.052996087819337845,
0.042492836713790894,
0.0... | 0.192041 |
Create kind cluster 2. Create new namespace 3. Apply `baseline` Pod Security Standard in `enforce` mode while applying `restricted` Pod Security Standard also in `warn` and `audit` mode. 4. Create a new pod with the following pod security standards applied - [Pod Security Admission](/docs/concepts/security/pod-security... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/security/ns-level-pss.md | main | kubernetes | [
0.06717932969331741,
-0.023358983919024467,
-0.009705285541713238,
0.00944898184388876,
0.05298437923192978,
0.019590549170970917,
0.010189819149672985,
0.017964864149689674,
-0.020440755411982536,
0.0643693283200264,
0.023014010861516,
-0.034899625927209854,
0.03804164379835129,
0.0376380... | 0.161737 |
This page provides an example of how to provision and configure swap memory on a Kubernetes node using kubeadm. ## {{% heading "objectives" %}} \* Provision swap memory on a Kubernetes node using kubeadm. \* Learn to configure both encrypted and unencrypted swap. \* Learn to enable swap on boot. ## {{% heading "prerequ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/provision-swap-memory.md | main | kubernetes | [
0.005653566215187311,
-0.009413953870534897,
-0.009270235896110535,
-0.00607705395668745,
-0.03932654857635498,
0.056982386857271194,
0.0025098847690969706,
0.05183377489447594,
0.029984893277287483,
0.055673256516456604,
-0.01568063721060753,
-0.042556047439575195,
0.025353670120239258,
-... | 0.109011 |
In order for these configurations to take effect, kubelet needs to be restarted. Typically you do that by running: ```shell systemctl restart kubelet.service ``` You should find that the kubelet is now healthy, and that you can run Pods that use swap memory as needed. | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/provision-swap-memory.md | main | kubernetes | [
0.08184439688920975,
0.022860581055283546,
0.0434599332511425,
-0.02882050909101963,
-0.10041756182909012,
0.011810464784502983,
-0.028554772958159447,
0.02562040090560913,
0.08382725715637207,
0.032959360629320145,
-0.014875762164592743,
-0.025870492681860924,
-0.03164390102028847,
-0.059... | 0.139561 |
Kubernetes {{< glossary\_tooltip text="namespaces" term\_id="namespace" >}} help different projects, teams, or customers to share a Kubernetes cluster. It does this by providing the following: 1. A scope for [Names](/docs/concepts/overview/working-with-objects/names/). 2. A mechanism to attach authorization and policy ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/namespaces-walkthrough.md | main | kubernetes | [
-0.051812395453453064,
-0.009854266420006752,
0.06395453214645386,
0.019220266491174698,
-0.012732596136629581,
-0.009958993643522263,
0.09245965629816055,
-0.07056976109743118,
0.027622146531939507,
0.032764703035354614,
-0.009688863530755043,
-0.10584450513124466,
0.017011763527989388,
0... | 0.082306 |
context for the kubectl client to work in each namespace. The value of "cluster" and "user" fields are copied from the current context. ```shell kubectl config set-context dev --namespace=development \ --cluster=lithe-cocoa-92103\_kubernetes \ --user=lithe-cocoa-92103\_kubernetes kubectl config set-context prod --names... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/namespaces-walkthrough.md | main | kubernetes | [
0.018853366374969482,
-0.02571103721857071,
-0.016430439427495003,
-0.008589561097323895,
-0.024906229227781296,
-0.03850299119949341,
0.06404513865709305,
-0.02785619907081127,
0.09171848744153976,
-0.002656625583767891,
0.006521947681903839,
-0.14691734313964844,
0.01355052087455988,
-0.... | 0.126695 |
This tutorial shows you how to run a standalone kubelet instance. You may have different motivations for running a standalone kubelet. This tutorial is aimed at introducing you to Kubernetes, even if you don't have much experience with it. You can follow this tutorial and learn about node setup, basic (static) Pods, an... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/kubelet-standalone.md | main | kubernetes | [
0.043760478496551514,
-0.008513806387782097,
-0.01617341674864292,
0.05394607409834862,
-0.04289453104138374,
0.019290463998913765,
-0.02313929982483387,
0.08114901185035706,
0.00016858942399267107,
0.03230321407318115,
-0.014098025858402252,
-0.05638990178704262,
0.027556955814361572,
-0.... | 0.129216 |
``` Detailed service check: ```shell sudo journalctl -f -u crio.service ``` ### Install network plugins The `cri-o` installer installs and configures the `cni-plugins` package. You can verify the installation running the following command: ```shell /opt/cni/bin/bridge --version ``` The output is similar to: ``` CNI bri... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/kubelet-standalone.md | main | kubernetes | [
-0.07392598688602448,
0.03513764217495918,
0.00297661148943007,
-0.07285095006227493,
-0.01015922799706459,
0.0032875039614737034,
-0.06206560879945755,
0.023961810395121574,
-0.04271439462900162,
-0.0023487969301640987,
-0.022822003811597824,
-0.11166379600763321,
-0.0101651381701231,
0.0... | 0.147597 |
systemctl disable --now crio.service sudo systemctl daemon-reload sudo rm -rf /usr/local/bin sudo rm -rf /usr/local/lib sudo rm -rf /usr/local/share sudo rm -rf /usr/libexec/crio sudo rm -rf /etc/crio sudo rm -rf /etc/containers ``` ### Network Plugins ```shell sudo rm -rf /opt/cni sudo rm -rf /etc/cni sudo rm -rf /var... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/kubelet-standalone.md | main | kubernetes | [
-0.020993273705244064,
0.01929657906293869,
0.020477071404457092,
-0.05167116969823837,
-0.03808291628956795,
-0.012536359019577503,
-0.0030580030288547277,
0.020067811012268066,
0.005902087781578302,
-0.03162110224366188,
0.019387898966670036,
-0.09193020313978195,
0.04255206510424614,
-0... | 0.1632 |
{{< feature-state feature\_gate\_name="DynamicResourceAllocation" >}} This tutorial shows you how to install {{< glossary\_tooltip term\_id="dra" text="Dynamic Resource Allocation (DRA)" >}} drivers in your cluster and how to use them in conjunction with the DRA APIs to allocate {{< glossary\_tooltip text="devices" ter... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/install-use-dra.md | main | kubernetes | [
-0.028775984421372414,
0.002613908378407359,
0.07062999904155731,
0.03176746889948845,
-0.049676407128572464,
-0.013247520662844181,
0.05762318894267082,
0.0008130656206049025,
0.027596591040492058,
0.029351238161325455,
-0.019161613658070564,
-0.09345497190952301,
-0.026824725791811943,
-... | 0.176014 |
a Helm chart, a set of manifests, or other deployment tooling. This tutorial uses an example driver which can be found in the [kubernetes-sigs/dra-example-driver](https://github.com/kubernetes-sigs/dra-example-driver) repository to demonstrate driver installation. This example driver advertises simulated GPUs to Kubern... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/install-use-dra.md | main | kubernetes | [
0.04912218824028969,
0.018356168642640114,
0.035228487104177475,
0.0008094953373074532,
-0.007661599665880203,
-0.029770392924547195,
-0.03304434195160866,
0.039701808243989944,
0.034177739173173904,
0.030065365135669708,
-0.02839541807770729,
-0.1127304956316948,
-0.00004290193828637712,
... | 0.163861 |
successfully installed the example DRA driver, and confirmed its initial configuration. You're now ready to use DRA to schedule Pods. ## Claim resources and deploy a Pod {#claim-resources-pod} To request resources using DRA, you create ResourceClaims or ResourceClaimTemplates that define the resources that your Pods ne... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/install-use-dra.md | main | kubernetes | [
-0.059182580560445786,
0.01091021578758955,
0.01899532973766327,
0.06666804850101471,
-0.045990198850631714,
-0.07578756660223007,
0.007249907124787569,
0.020096713677048683,
-0.008205555379390717,
-0.005721345543861389,
-0.06905082613229752,
-0.06639371812343597,
-0.02948993258178234,
0.0... | 0.150214 |
`some-gpu` ResourceClaim. The `status` stanza of the ResourceClaim has information about the allocated device and the Pod it has been reserved for: ```shell kubectl get resourceclaim some-gpu -n dra-tutorial -o yaml ``` The output is similar to this: {{< highlight yaml "linenos=inline, hl\_lines=27-30 38-41, style=emac... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/cluster-management/install-use-dra.md | main | kubernetes | [
-0.041352272033691406,
0.049331922084093094,
0.011558551341295242,
0.014160643331706524,
0.053727757185697556,
-0.06461873650550842,
-0.00019518534827511758,
-0.024993890896439552,
0.10201213508844376,
0.025604326277971268,
-0.022647012025117874,
-0.06820198148488998,
-0.037997640669345856,
... | 0.173342 |
## {{% heading "objectives" %}} This tutorial provides a walkthrough of the basics of the Kubernetes cluster orchestration system. Each module contains some background information on major Kubernetes features and concepts, and a tutorial for you to follow along. Using the tutorials, you can learn to: \* Deploy a contai... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/_index.md | main | kubernetes | [
0.03313141688704491,
0.00011462666589068249,
0.06634743511676788,
-0.008419782854616642,
0.004560566507279873,
-0.018406694754958153,
-0.017161961644887924,
0.0007087453850544989,
-0.023477500304579735,
0.029122572392225266,
-0.03291695937514305,
-0.017694678157567978,
0.005169181618839502,
... | 0.204318 |
## {{% heading "objectives" %}} \* Scale an existing app manually using kubectl. ## {{% heading "prerequisites" %}} The shell commands in this tutorial use POSIX shell syntax, which is supported by the default shells on most Linux and macOS systems (for example, bash, zsh, or sh). Windows users must use a POSIX-compati... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.md | main | kubernetes | [
0.05449176952242851,
0.0004406049265526235,
-0.04213918372988701,
-0.0012468742206692696,
-0.054002583026885986,
-0.038802988827228546,
0.02060653083026409,
0.047538600862026215,
0.033462028950452805,
0.05387930944561958,
-0.02642367221415043,
-0.15321886539459229,
0.06335293501615524,
0.0... | 0.081517 |
the desired state. \* \_AVAILABLE\_ displays how many replicas of the application are available to your users. \* \_AGE\_ displays the amount of time that the application has been running. To see the ReplicaSet created by the Deployment, run: ```shell kubectl get rs ``` Notice that the name of the ReplicaSet is always ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.md | main | kubernetes | [
0.08351007848978043,
0.013027706183493137,
0.0010251222411170602,
-0.014732910320162773,
-0.06851140409708023,
-0.013610776513814926,
0.00008876040374161676,
-0.009255116805434227,
0.04643983393907547,
0.055029042065143585,
-0.01902402751147747,
-0.10119600594043732,
0.08250267803668976,
-... | 0.16288 |
[Performing a Rolling Update](/docs/tutorials/kubernetes-basics/update/update-intro/). \* Learn more about [ReplicaSet](/docs/concepts/workloads/controllers/replicaset/). \* Learn more about [Autoscaling](/docs/concepts/workloads/autoscaling/). | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/scale/scale-intro.md | main | kubernetes | [
-0.01950222998857498,
-0.009732173755764961,
0.0074049727991223335,
-0.0277539175003767,
-0.04664196819067001,
-0.04261085391044617,
-0.03429663926362991,
-0.013699295930564404,
0.0012891321675851941,
0.09544440358877182,
0.022906620055437088,
-0.0009106243960559368,
-0.036392100155353546,
... | 0.183863 |
## {{% heading "objectives" %}} Perform a rolling update using kubectl. ## {{% heading "prerequisites" %}} The shell commands in this tutorial use POSIX shell syntax, which is supported by the default shells on most Linux and macOS systems (for example, bash, zsh, or sh). Windows users must use a POSIX-compatible shell... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/update/update-intro.md | main | kubernetes | [
0.020453739911317825,
0.019462792202830315,
-0.019146548584103584,
-0.023683493956923485,
-0.04727199673652649,
-0.039129335433244705,
0.016519568860530853,
0.012921485118567944,
0.05612926557660103,
0.09233169257640839,
-0.015018662437796593,
-0.08939123898744583,
0.030544396489858627,
-0... | 0.120456 |
check that the service is running, as you might have deleted it in previous tutorial step, run `describe services/kubernetes-bootcamp`. If it's missing, you can create it again with: ```shell kubectl expose deployment/kubernetes-bootcamp --type="NodePort" --port 8080 ``` Create an environment variable called `NODE\_POR... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/update/update-intro.md | main | kubernetes | [
0.06659343838691711,
0.0012750618625432253,
0.01948070339858532,
-0.018932273611426353,
0.037376780062913895,
0.017708834260702133,
-0.07010367512702942,
-0.0490492507815361,
0.03016599826514721,
0.0652155801653862,
0.03943049907684326,
0.00597348902374506,
-0.029677648097276688,
-0.040840... | 0.006756 |
## {{% heading "objectives" %}} \* Learn what a Kubernetes cluster is. \* Learn what Minikube is. \* Start a Kubernetes cluster on your computer. ## {{% heading "prerequisites" %}} The shell commands in this tutorial use POSIX shell syntax, which is supported by the default shells on most Linux and macOS systems (for e... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro.md | main | kubernetes | [
0.07576373219490051,
0.03270115703344345,
-0.023164991289377213,
0.03171515092253685,
0.040991540998220444,
0.029493093490600586,
0.015562780201435089,
0.04943584278225899,
0.024630462750792503,
0.05481642484664917,
-0.012016166001558304,
-0.08726616948843002,
0.013253103010356426,
-0.0153... | 0.135002 |
is available for Linux, macOS, and Windows systems. The Minikube CLI provides basic bootstrapping operations for working with your cluster, including start, stop, status, and delete. ## {{% heading "whatsnext" %}} \* Tutorial [Hello Minikube](/docs/tutorials/hello-minikube/). \* Learn more about [Cluster Architecture](... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro.md | main | kubernetes | [
0.005966842174530029,
0.011685016565024853,
-0.031734809279441833,
0.0020175804384052753,
0.10224425792694092,
0.025414368137717247,
-0.07798538357019424,
0.05470680072903633,
-0.03488358110189438,
0.04889322817325592,
0.013487850315868855,
0.02911231480538845,
0.048594944179058075,
0.0014... | 0.158661 |
## {{% heading "objectives" %}} \* Learn about Kubernetes Pods. \* Learn about Kubernetes Nodes. \* Troubleshoot deployed applications. ## {{% heading "prerequisites" %}} The shell commands in this tutorial use POSIX shell syntax, which is supported by the default shells on most Linux and macOS systems (for example, ba... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/explore/explore-intro.md | main | kubernetes | [
0.08639313280582428,
0.030158555135130882,
0.01484040915966034,
0.0039229001849889755,
0.03150986135005951,
-0.006503431126475334,
0.06475246697664261,
0.03432638198137283,
0.055778130888938904,
0.06854220479726791,
-0.00037374012754298747,
-0.08185838907957077,
0.008288109675049782,
-0.00... | 0.167057 |
information about deployed applications and their environments. The most common operations can be done with the following kubectl subcommands: \* `kubectl get` - list resources \* `kubectl describe` - show detailed information about a resource \* `kubectl logs` - print the logs from a container in a pod \* `kubectl exe... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/explore/explore-intro.md | main | kubernetes | [
0.06321564316749573,
-0.020911406725645065,
0.02935577556490898,
-0.0044697062112390995,
0.040942467749118805,
-0.05145523324608803,
-0.007307309657335281,
-0.014307423494756222,
0.04323091357946396,
0.03690395504236221,
-0.0032436333131045103,
-0.06320678442716599,
-0.0036151364911347628,
... | 0.206246 |
run our NodeJS application. The source code of the app is in the `server.js` file: ```shell cat server.js ``` You can check that the application is up by running a curl command: ```shell curl http://localhost:8080 ``` {{< note >}} Here we used `localhost` because we executed the command inside the NodeJS Pod. If you ca... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/explore/explore-intro.md | main | kubernetes | [
0.06324783712625504,
0.03148775175213814,
0.04081305116415024,
-0.016510270535945892,
-0.007531927898526192,
-0.03505551815032959,
-0.08417388796806335,
-0.00898483581840992,
0.10020306706428528,
0.06820891797542572,
-0.06020081415772438,
-0.03825170546770096,
-0.039988644421100616,
-0.029... | 0.084925 |
## {{% heading "objectives" %}} \* Learn about a Service in Kubernetes. \* Understand how labels and selectors relate to a Service. \* Expose an application outside a Kubernetes cluster. ## {{% heading "prerequisites" %}} The shell commands in this tutorial use POSIX shell syntax, which is supported by the default shel... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/expose/expose-intro.md | main | kubernetes | [
0.042519085109233856,
0.024497726932168007,
-0.006189325824379921,
-0.019973067566752434,
-0.007180884480476379,
0.01804398000240326,
0.055927619338035583,
0.02093864418566227,
0.05560193210840225,
0.060886092483997345,
-0.012628473341464996,
-0.10244069248437881,
0.023966217413544655,
0.0... | 0.173251 |
without `selector` will also not create the corresponding Endpoints object. This allows users to manually map a Service to specific endpoints. Another possibility why there may be no selector is you are strictly using `type: ExternalName`. ## Services and Labels A Service routes traffic across a set of Pods. Services a... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/expose/expose-intro.md | main | kubernetes | [
0.012063276953995228,
-0.034029074013233185,
0.041918717324733734,
0.010712981224060059,
0.04493294283747673,
0.00029639402055181563,
0.07747691124677658,
-0.03546634316444397,
0.09417442977428436,
0.01196334045380354,
-0.01098610833287239,
-0.06052500382065773,
-0.03384299576282501,
-0.00... | 0.17686 |
label to query our list of Pods. Weβll use the `kubectl get pods` command with `-l` as a parameter, followed by the label values: ```shell kubectl get pods -l app=kubernetes-bootcamp ``` You can do the same to list the existing Services: ```shell kubectl get services -l app=kubernetes-bootcamp ``` Get the name of the P... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/expose/expose-intro.md | main | kubernetes | [
0.07914283126592636,
0.04601937159895897,
0.002879602136090398,
0.01940295472741127,
-0.011614489369094372,
0.06351672857999802,
0.09460616111755371,
0.052341021597385406,
0.06397346407175064,
-0.04535958170890808,
0.0037652957253158092,
-0.09377115964889526,
-0.032791946083307266,
-0.0497... | 0.099584 |
## {{% heading "objectives" %}} \* Learn about application Deployments. \* Deploy your first app on Kubernetes with kubectl. ## {{% heading "prerequisites" %}} The shell commands in this tutorial use POSIX shell syntax, which is supported by the default shells on most Linux and macOS systems (for example, bash, zsh, or... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.md | main | kubernetes | [
0.07153494656085968,
-0.00157672050409019,
-0.0017637219280004501,
-0.019712349399924278,
-0.015805894508957863,
-0.03373870998620987,
0.0401596836745739,
0.0333121195435524,
0.0743345320224762,
0.0515618659555912,
-0.021538350731134415,
-0.09645993262529373,
0.02240213379263878,
0.0006823... | 0.109492 |
command is: `kubectl action resource`. This performs the specified \_action\_ (like `create`, `describe` or `delete`) on the specified \_resource\_ (like `node` or `deployment`. You can use `--help` after the subcommand to get additional info about possible parameters (for example: `kubectl get nodes --help`). Check th... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.md | main | kubernetes | [
0.06989233195781708,
-0.013291513547301292,
0.009325682185590267,
-0.013100933283567429,
-0.00750297587364912,
0.006507656071335077,
-0.0416075736284256,
-0.019685236737132072,
0.06322430819272995,
0.03876800835132599,
-0.018645314499735832,
-0.10039130598306656,
0.031063968315720558,
-0.0... | 0.101773 |
``` In order for the new Deployment to be accessible without using the proxy, a Service is required which will be explained in [Module 4](/docs/tutorials/kubernetes-basics/expose/). ## {{% heading "whatsnext" %}} \* Tutorial [Viewing Pods and Nodes](/docs/tutorials/kubernetes-basics/explore/explore-intro/). \* Learn mo... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/kubernetes-basics/deploy-app/deploy-intro.md | main | kubernetes | [
0.01720677874982357,
-0.03242277354001999,
0.04886917769908905,
-0.04166887328028679,
-0.0699683427810669,
0.012578149326145649,
0.01508086733520031,
-0.03030349686741829,
0.012529428116977215,
0.07514756172895432,
-0.026154853403568268,
0.023281624540686607,
0.010666423477232456,
-0.01301... | 0.121641 |
This tutorial provides an introduction to managing applications with {{< glossary\_tooltip text="StatefulSets" term\_id="statefulset" >}}. It demonstrates how to create, delete, scale, and update the Pods of StatefulSets. ## {{% heading "prerequisites" %}} Before you begin this tutorial, you should familiarize yourself... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
-0.00910323765128851,
-0.004446891136467457,
0.051073264330625534,
-0.022885575890541077,
-0.07664359360933304,
-0.011451374739408493,
-0.000399912241846323,
-0.015250660479068756,
0.011037223041057587,
0.07071785628795624,
-0.02265997789800167,
-0.05310710147023201,
-0.008111460134387016,
... | 0.187977 |
# Do not start a new watch; # this should already be running kubectl get pods --watch -l app=nginx ``` ``` NAME READY STATUS RESTARTS AGE web-0 0/1 Pending 0 0s web-0 0/1 Pending 0 0s web-0 0/1 ContainerCreating 0 0s web-0 1/1 Running 0 19s web-1 0/1 Pending 0 0s web-1 0/1 Pending 0 0s web-1 0/1 ContainerCreating 0 0s ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
-0.022208012640476227,
0.005251131486147642,
0.02424679696559906,
-0.0024874063674360514,
0.0014527540188282728,
-0.025999711826443672,
-0.04173736646771431,
-0.02321632392704487,
0.02725715935230255,
0.0626126080751419,
0.027813704684376717,
-0.04328871890902519,
-0.05827844887971878,
-0.... | 0.131716 |
exec` and `kubectl run` to view the Pods' hostnames and in-cluster DNS entries. First, view the Pods' hostnames: ```shell for i in 0 1; do kubectl exec web-$i -- sh -c 'hostname'; done ``` ``` web-0 web-1 ``` then, run: ```shell kubectl run -i --tty --image busybox:1.28 dns-test --restart=Never --rm ``` which starts a ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
0.027184130623936653,
-0.011025787331163883,
-0.0018627865938469768,
-0.03210628777742386,
-0.06381490081548691,
-0.07756389677524567,
-0.06294496357440948,
-0.037625350058078766,
0.08354756981134415,
0.0512821264564991,
-0.011216899380087852,
-0.10776650160551071,
-0.06521504372358322,
-0... | 0.139069 |
when using hostPath volumes](https://github.com/kubernetes/kubernetes/issues/2630)), by running: `for i in 0 1; do kubectl exec web-$i -- chmod 755 /usr/share/nginx/html; done` before retrying the `curl` command above. {{< /note >}} In one terminal, watch the StatefulSet's Pods: ```shell # End this watch when you've re... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
0.022219857200980186,
-0.012432853691279888,
0.03471161797642708,
0.026003843173384666,
-0.02538401260972023,
-0.05575033277273178,
-0.08408410847187042,
-0.05469271168112755,
0.07729671895503998,
0.05271460860967636,
-0.06054346263408661,
-0.02263086661696434,
-0.021597737446427345,
-0.02... | 0.074314 |
Running and Ready before launching the subsequent Pod. ### Scaling down Scaling down means reducing the number of replicas. For example, you might do this because the level of traffic to a service has decreased, and at the current scale there are idle resources. In one terminal, watch the StatefulSet's Pods: ```shell #... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
0.044239796698093414,
-0.030753133818507195,
0.048544708639383316,
0.017862532287836075,
-0.04236233979463577,
-0.035710930824279785,
-0.053231023252010345,
0.006044247653335333,
-0.0040345340967178345,
0.060333508998155594,
-0.02992691658437252,
-0.024809425696730614,
-0.02776339277625084,
... | 0.122127 |
0/1 Terminating 0 8m web-2 0/1 Pending 0 0s web-2 0/1 Pending 0 0s web-2 0/1 ContainerCreating 0 0s web-2 1/1 Running 0 19s web-1 1/1 Terminating 0 8m web-1 0/1 Terminating 0 8m web-1 0/1 Terminating 0 8m web-1 0/1 Terminating 0 8m web-1 0/1 Pending 0 0s web-1 0/1 Pending 0 0s web-1 0/1 ContainerCreating 0 0s web-1 1/1... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
-0.017255740240216255,
-0.011790157295763493,
-0.021941935643553734,
-0.009112486615777016,
-0.034267131239175797,
-0.03550471365451813,
0.0239487886428833,
-0.07338225096464157,
-0.029871784150600433,
0.03934934735298157,
0.06514117121696472,
-0.04996126890182495,
-0.00035605221637524664,
... | 0.161089 |
web-2 1/1 Running 0 18s ``` Get the Pod's container image: ```shell kubectl get pod web-2 --template '{{range $i, $c := .spec.containers}}{{$c.image}}{{end}}' ``` ``` registry.k8s.io/nginx-slim:0.24 ``` Notice that, even though the update strategy is `RollingUpdate` the StatefulSet restored the Pod with the original co... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
-0.005562731996178627,
0.07987263798713684,
0.11521486937999725,
-0.0012282496318221092,
0.017632780596613884,
-0.05185623839497566,
-0.05379950627684593,
-0.013506830669939518,
-0.005059399176388979,
0.05921326205134392,
0.008528183214366436,
-0.028130244463682175,
-0.027084289118647575,
... | 0.054481 |
output is similar to: ``` NAME READY STATUS RESTARTS AGE web-0 1/1 Running 0 3m web-1 0/1 ContainerCreating 0 11s web-2 1/1 Running 0 2m web-1 1/1 Running 0 18s web-0 1/1 Terminating 0 3m web-0 1/1 Terminating 0 3m web-0 0/1 Terminating 0 3m web-0 0/1 Terminating 0 3m web-0 0/1 Terminating 0 3m web-0 0/1 Terminating 0 ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
0.033650197088718414,
0.09287063032388687,
-0.022773511707782745,
-0.0036180869210511446,
0.0006881649605929852,
-0.042758211493492126,
0.0013862688792869449,
-0.021117541939020157,
0.03772740438580513,
0.006901421584188938,
0.03180062770843506,
-0.11003997921943665,
-0.04242017865180969,
... | 0.162557 |
first terminal. ```shell # This should already be running kubectl get pods --watch -l app=nginx ``` ``` NAME READY STATUS RESTARTS AGE web-1 1/1 Running 0 16m web-2 1/1 Running 0 2m NAME READY STATUS RESTARTS AGE web-0 0/1 Pending 0 0s web-0 0/1 Pending 0 0s web-0 0/1 ContainerCreating 0 0s web-0 1/1 Running 0 18s web-... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
-0.011958260089159012,
-0.009526137262582779,
0.03663869947195053,
-0.019865665584802628,
0.004522115923464298,
-0.06185004115104675,
-0.027841657400131226,
-0.04279864951968193,
0.039089079946279526,
0.05670737102627754,
0.03950505331158638,
-0.06964630633592606,
-0.04868714138865471,
-0.... | 0.118871 |
to serve their hostnames. Finally, delete the `nginx` Service... ```shell kubectl delete service nginx ``` ``` service "nginx" deleted ``` ...and the `web` StatefulSet: ```shell kubectl delete statefulset web ``` ``` statefulset "web" deleted ``` ## Pod management policy For some distributed systems, the StatefulSet or... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
-0.01936247944831848,
0.022803055122494698,
0.05855598300695419,
-0.045204561203718185,
-0.05481477826833725,
-0.0564836747944355,
-0.04881439357995987,
-0.10452475398778915,
0.10196288675069809,
0.06537733227014542,
-0.030963562428951263,
0.012698245234787464,
0.003631116123870015,
-0.040... | 0.131502 |
Pods - but you also would not want to wait for each new Pod to launch. Starting the extra Pods in parallel cuts the time between requesting the extra capacity and having it available for use. ## {{% heading "cleanup" %}} You should have two terminals open, ready for you to run `kubectl` commands as part of cleanup. ```... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/basic-stateful-set.md | main | kubernetes | [
0.006351403426378965,
-0.054739512503147125,
0.021313292905688286,
0.0014628333738073707,
-0.03141501918435097,
-0.04044480621814728,
-0.027969470247626305,
-0.03162654861807823,
0.061532992869615555,
0.04055775701999664,
-0.027392277494072914,
-0.01965644769370556,
-0.02724650874733925,
-... | 0.135913 |
This tutorial shows you how to deploy a WordPress site and a MySQL database using Minikube. Both applications use PersistentVolumes and PersistentVolumeClaims to store data. A [PersistentVolume](/docs/concepts/storage/persistent-volumes/) (PV) is a piece of storage in the cluster that has been manually provisioned by a... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume.md | main | kubernetes | [
0.02535308711230755,
0.0049901544116437435,
-0.030260099098086357,
-0.0007225314620882273,
-0.011406667530536652,
-0.01600535959005356,
-0.0322994589805603,
0.06567329168319702,
0.05965132266283035,
0.049257542937994,
0.02329135127365589,
-0.0024670367129147053,
0.09973306953907013,
-0.008... | 0.086031 |
file="application/wordpress/mysql-deployment.yaml" %}} The following manifest describes a single-instance WordPress Deployment. The WordPress container mounts the PersistentVolume at `/var/www/html` for website data files. The `WORDPRESS\_DB\_HOST` environment variable sets the name of the MySQL Service defined above, ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume.md | main | kubernetes | [
0.05701562389731407,
-0.049878571182489395,
-0.06349195539951324,
-0.05547424033284187,
-0.09675556421279907,
-0.053632624447345734,
0.01677056774497032,
0.029980184510350227,
0.03674089163541794,
0.05799287557601929,
0.00796106830239296,
-0.04404579475522041,
0.11105205118656158,
-0.02345... | 0.024756 |
This tutorial shows you how to run [Apache Cassandra](https://cassandra.apache.org/) on Kubernetes. Cassandra, a database, needs persistent storage to provide data durability (application \_state\_). In this example, a custom Cassandra seed provider lets the database discover new Cassandra instances as they join the Ca... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/cassandra.md | main | kubernetes | [
-0.01052505150437355,
-0.0041941991075873375,
-0.024015501141548157,
0.03855187073349953,
-0.06854656338691711,
0.009141640737652779,
-0.04029712826013565,
-0.028117766603827477,
0.060337528586387634,
0.04464118927717209,
-0.011929050087928772,
-0.03375202417373657,
0.0717274472117424,
-0.... | 0.18959 |
cassandra-statefulset.yaml ``` ## Validating the Cassandra StatefulSet 1. Get the Cassandra StatefulSet: ```shell kubectl get statefulset cassandra ``` The response should be similar to: ``` NAME DESIRED CURRENT AGE cassandra 3 0 13s ``` The `StatefulSet` resource deploys Pods sequentially. 1. Get the Pods to see the o... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/cassandra.md | main | kubernetes | [
0.03460577875375748,
0.0018642634386196733,
-0.008676312863826752,
0.026532400399446487,
-0.07166526466608047,
-0.05309454724192619,
-0.07054851949214935,
-0.02591901458799839,
0.03791723772883415,
0.05970434099435806,
0.005455076694488525,
-0.10106460005044937,
0.0332014374434948,
-0.0567... | 0.12459 |
includes a standard Cassandra installation from the Apache Debian repo. By using environment variables you can change values that are inserted into `cassandra.yaml`. | Environment variable | Default value | | ------------------------ |:---------------: | | `CASSANDRA\_CLUSTER\_NAME` | `'Test Cluster'` | | `CASSANDRA\_N... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/cassandra.md | main | kubernetes | [
0.04131477698683739,
0.011882834136486053,
-0.03474976494908333,
0.019887857139110565,
-0.11197005212306976,
-0.013767163269221783,
-0.08100288361310959,
0.02346988022327423,
-0.011776577681303024,
0.04283778369426727,
0.012500547803938389,
-0.11543312668800354,
0.08135639131069183,
-0.048... | 0.08063 |
This tutorial demonstrates running [Apache Zookeeper](https://zookeeper.apache.org) on Kubernetes using [StatefulSets](/docs/concepts/workloads/controllers/statefulset/), [PodDisruptionBudgets](/docs/concepts/workloads/pods/disruptions/#pod-disruption-budget), and [PodAntiAffinity](/docs/concepts/scheduling-eviction/as... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
0.00473915645852685,
-0.004599029663950205,
0.05477314442396164,
0.008736453019082546,
-0.01354917697608471,
-0.04108714684844017,
-0.026392268016934395,
-0.023747947067022324,
0.01486386638134718,
0.047745231539011,
-0.012163670733571053,
-0.01198815368115902,
-0.015883030369877815,
0.007... | 0.172034 |
get pods -w -l app=zk ``` Once the `zk-2` Pod is Running and Ready, use `CTRL-C` to terminate kubectl. ``` NAME READY STATUS RESTARTS AGE zk-0 0/1 Pending 0 0s zk-0 0/1 Pending 0 0s zk-0 0/1 ContainerCreating 0 0s zk-0 0/1 Running 0 19s zk-0 1/1 Running 0 40s zk-1 0/1 Pending 0 0s zk-1 0/1 Pending 0 0s zk-1 0/1 Contain... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
0.00003439588181208819,
0.0565863698720932,
-0.062373630702495575,
-0.013325691223144531,
-0.0004236198146827519,
-0.04309484735131264,
0.048260483890771866,
-0.02605343423783779,
0.009332136251032352,
0.046458739787340164,
0.0016929538687691092,
-0.0904664471745491,
-0.001773830153979361,
... | 0.116972 |
unique. No two participants in the Zab protocol should claim the same unique identifier. This is necessary to allow the processes in the system to agree on which processes have committed which data. If two Pods are launched with the same ordinal, two ZooKeeper servers would both identify themselves as the same server. ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
-0.016475358977913857,
0.010937824845314026,
-0.047610778361558914,
-0.022309526801109314,
-0.036547496914863586,
-0.043518565595149994,
0.07610074430704117,
-0.06852958351373672,
0.06261156499385834,
0.0006279069930315018,
-0.030813513323664665,
-0.06971821933984756,
0.09210193902254105,
... | 0.109933 |
9m zk-2 0/1 Terminating 0 9m zk-2 0/1 Terminating 0 9m zk-1 0/1 Terminating 0 10m zk-1 0/1 Terminating 0 10m zk-1 0/1 Terminating 0 10m zk-0 0/1 Terminating 0 11m zk-0 0/1 Terminating 0 11m zk-0 0/1 Terminating 0 11m ``` Reapply the manifest in `zookeeper.yaml`. ```shell kubectl apply -f https://k8s.io/examples/applica... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
-0.010054451413452625,
0.062146712094545364,
0.026523195207118988,
-0.0014736265875399113,
0.023962099105119705,
-0.07982361316680908,
0.007726144045591354,
0.010992055758833885,
0.03500695899128914,
0.04225216805934906,
-0.031007006764411926,
-0.08651509881019592,
0.011221344582736492,
0.... | 0.118343 |
--election\_port=3888 \ --server\_port=2888 \ --tick\_time=2000 \ --init\_limit=10 \ --sync\_limit=5 \ --heap=512M \ --max\_client\_cnxns=60 \ --snap\_retain\_count=3 \ --purge\_interval=12 \ --max\_session\_timeout=40000 \ --min\_session\_timeout=4000 \ --log\_level=INFO" β¦ ``` The command used to start the ZooKeeper ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
-0.026452505961060524,
0.07140534371137619,
-0.001165685709565878,
0.023810256272554398,
0.04212426394224167,
-0.0729064792394638,
-0.01918848045170307,
0.03295917809009552,
-0.033856507390737534,
0.054875537753105164,
-0.06832235306501389,
-0.06033295765519142,
0.05102910101413727,
0.0431... | 0.017431 |
a [sidecar container](/docs/concepts/cluster-administration/logging#sidecar-container-with-logging-agent) to rotate and ship your logs. ### Configuring a non-privileged user The best practices to allow an application to run as a privileged user inside of a container are a matter of debate. If your organization requires... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
0.07553110271692276,
0.05054519698023796,
-0.0531432144343853,
-0.011422852985560894,
0.007317689247429371,
-0.05414639413356781,
0.03814534470438957,
0.05178798735141754,
-0.04706653580069542,
0.048268549144268036,
-0.012780207209289074,
-0.051637742668390274,
0.003999398089945316,
0.0459... | 0.164289 |
the new configuration. This ensures that quorum is maintained during a rolling update. Use the `kubectl rollout history` command to view a history or previous configurations. ```shell kubectl rollout history sts/zk ``` The output is similar to this: ``` statefulsets "zk" REVISION 1 2 ``` Use the `kubectl rollout undo` ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
0.009592501446604729,
0.03651797026395798,
0.03742542490363121,
0.0004634750075638294,
-0.06504105776548386,
-0.02652217261493206,
-0.06752434372901917,
0.0023574591614305973,
0.04217599704861641,
0.08738066256046295,
-0.03478212654590607,
0.02255253493785858,
-0.020250437781214714,
-0.000... | 0.136432 |
fails, Kubernetes will automatically restart the process for you, ensuring that unhealthy processes in the ensemble are restarted. ```shell kubectl get pod -w -l app=zk ``` ``` NAME READY STATUS RESTARTS AGE zk-0 1/1 Running 0 1h zk-1 1/1 Running 0 1h zk-2 1/1 Running 0 1h NAME READY STATUS RESTARTS AGE zk-0 0/1 Runnin... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
0.013891023583710194,
-0.013928364031016827,
0.005988355726003647,
0.016133662313222885,
0.047600239515304565,
-0.044756557792425156,
-0.0175468809902668,
-0.017969632521271706,
0.05400196090340614,
0.09050146490335464,
-0.0756433829665184,
-0.025625336915254593,
0.010523475706577301,
0.01... | 0.101481 |
using this tutorial on a shared cluster, be sure that this will not adversely affect other tenants. The previous section showed you how to spread your Pods across nodes to survive unplanned node failures, but you also need to plan for temporary node failures that occur due to planned maintenance. Use this command to ge... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
0.023040421307086945,
-0.007929760962724686,
0.0011138624977320433,
-0.014024477452039719,
-0.025768663734197617,
-0.04109446331858635,
-0.06054485961794853,
0.007852420210838318,
-0.046021465212106705,
0.044041648507118225,
0.018353089690208435,
-0.04599503427743912,
0.007539759855717421,
... | 0.062258 |
0s zk-0 0/1 ContainerCreating 0 0s zk-0 0/1 Running 0 51s zk-0 1/1 Running 0 1m zk-1 1/1 Terminating 0 2h zk-1 0/1 Terminating 0 2h zk-1 0/1 Terminating 0 2h zk-1 0/1 Terminating 0 2h zk-1 0/1 Pending 0 0s zk-1 0/1 Pending 0 0s ``` Continue to watch the Pods of the StatefulSet, and drain the node on which `zk-2` is sch... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
0.016380546614527702,
0.09397157281637192,
0.011197400279343128,
0.04428362101316452,
0.04008648917078972,
-0.058478713035583496,
0.016860952600836754,
-0.04217299073934555,
0.1143215075135231,
0.05154277756810188,
-0.03444384038448334,
-0.04596902057528496,
-0.0003749796887859702,
-0.0196... | 0.163966 |
express a disruption budget will have that budget respected. You should always allocate additional capacity for critical services so that their Pods can be immediately rescheduled. ## {{% heading "cleanup" %}} - Use `kubectl uncordon` to uncordon all the nodes in your cluster. - You must delete the persistent storage m... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateful-application/zookeeper.md | main | kubernetes | [
0.04174556955695152,
0.004008140880614519,
0.055162426084280014,
0.03415665403008461,
0.005170242860913277,
-0.032715752720832825,
-0.0637483298778534,
-0.034194834530353546,
0.02227141335606575,
0.09028058499097824,
-0.02286042831838131,
-0.029954208061099052,
-0.022725507616996765,
-0.06... | 0.162197 |
Once you connected your Application with Service following steps like those outlined in [Connecting Applications with Services](/docs/tutorials/services/connect-applications-service/), you have a continuously running, replicated application, that is exposed on a network. This tutorial helps you look at the termination ... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/pods-and-endpoint-termination-flow.md | main | kubernetes | [
0.0014836592599749565,
0.030329320579767227,
0.08734430372714996,
0.010733259841799736,
-0.04534244164824486,
-0.08194298297166824,
-0.05112394690513611,
-0.010197636671364307,
0.05205327644944191,
0.042600736021995544,
-0.06771985441446304,
0.07866395264863968,
-0.023665685206651688,
-0.0... | 0.184638 |
to [Connect Applications with Services](/docs/tutorials/services/connect-applications-service/) \* Learn more about [Using a Service to Access an Application in a Cluster](/docs/tasks/access-application-cluster/service-access-application-cluster/) \* Learn more about [Connecting a Front End to a Back End Using a Servic... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/pods-and-endpoint-termination-flow.md | main | kubernetes | [
-0.056642260402441025,
-0.0668867900967598,
-0.13401974737644196,
-0.014403067529201508,
-0.03668398782610893,
-0.013070878572762012,
0.028093509376049042,
0.08084326982498169,
-0.03677768632769585,
0.012743153609335423,
-0.047600630670785904,
0.06501692533493042,
0.04402486979961395,
-0.0... | 0.227518 |
Applications running in a Kubernetes cluster find and communicate with each other, and the outside world, through the Service abstraction. This document explains what happens to the source IP of packets sent to different types of Services, and how you can toggle this behavior according to your needs. ## {{% heading "pr... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/source-ip.md | main | kubernetes | [
-0.02907264046370983,
0.026460519060492516,
0.07020263373851776,
-0.039252541959285736,
0.02603183686733246,
-0.0037879180163145065,
0.05496703460812569,
-0.05453038215637207,
0.04829665273427963,
-0.00040623886161483824,
-0.04123266786336899,
-0.04162124544382095,
-0.006640559993684292,
-... | 0.206169 |
global eth0 valid\_lft forever preferred\_lft forever inet6 fe80::188a:84ff:feb0:26a5/64 scope link valid\_lft forever preferred\_lft forever ``` β¦then use `wget` to query the local webserver ```shell # Replace "10.0.170.92" with the IPv4 address of the Service named "clusterip" wget -qO - 10.0.170.92 ``` ``` CLIENT VA... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/source-ip.md | main | kubernetes | [
0.02479659952223301,
0.03804154321551323,
-0.0015743938274681568,
-0.016199937090277672,
0.06520216912031174,
0.002493880456313491,
-0.012373587116599083,
-0.025548825040459633,
0.002664904110133648,
0.010290676727890968,
0.018343470990657806,
-0.05045870319008827,
-0.014994327910244465,
-... | 0.055091 |
node without an endpoint, the system proxies it to a node \*with\* an endpoint, replacing the source IP on the packet with the IP of the node (as described in the previous section). You can test this by exposing the source-ip-app through a load balancer: ```shell kubectl expose deployment source-ip-app --name=loadbalan... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/source-ip.md | main | kubernetes | [
-0.051021426916122437,
0.04859853535890579,
-0.016036177054047585,
-0.03766324371099472,
-0.012361717410385609,
-0.03805699944496155,
-0.012796614319086075,
-0.022879984229803085,
0.12019457668066025,
0.03554893285036087,
-0.04659462720155716,
-0.05231946334242821,
-0.006189484614878893,
-... | 0.163917 |
check pointing at the port stored in the `service.spec.healthCheckNodePort` field on the Service. ## {{% heading "cleanup" %}} Delete the Services: ```shell kubectl delete svc -l app=source-ip-app ``` Delete the Deployment, ReplicaSet and Pod: ```shell kubectl delete deployment source-ip-app ``` ## {{% heading "whatsne... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/source-ip.md | main | kubernetes | [
0.003954125102609396,
0.010725006461143494,
-0.04142233729362488,
-0.06544628739356995,
-0.0249344389885664,
-0.07237736880779266,
-0.0019798728171736,
-0.014900295995175838,
0.06401023268699646,
0.06798064708709717,
-0.026827247813344002,
0.0016273428918793797,
-0.007027623243629932,
-0.0... | 0.176454 |
## The Kubernetes model for connecting containers Now that you have a continuously running, replicated application you can expose it on a network. Kubernetes assumes that pods can communicate with other pods, regardless of which host they land on. Kubernetes gives every pod its own cluster-private IP address, so you do... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/connect-applications-service.md | main | kubernetes | [
0.009668848477303982,
-0.001831347937695682,
0.013656988739967346,
0.03194480761885643,
-0.03865789249539375,
0.011065407656133175,
-0.021431520581245422,
-0.024876896291971207,
-0.010507768020033836,
0.029949644580483437,
-0.08853691816329956,
-0.006436885800212622,
-0.004854952450841665,
... | 0.210115 |
file="service/networking/nginx-svc.yaml" %}} This specification will create a Service which targets TCP port 80 on any Pod with the `run: my-nginx` label, and expose it on an abstracted Service port (`targetPort`: is the port the container accepts traffic on, `port`: is the abstracted Service port, which can be any por... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/connect-applications-service.md | main | kubernetes | [
-0.012107881717383862,
0.01409340649843216,
-0.024203643202781677,
-0.033969271928071976,
0.0033586896024644375,
0.01512590330094099,
0.015977982431650162,
-0.022483045235276222,
0.0749780461192131,
0.02625458687543869,
-0.0495288260281086,
-0.020171131938695908,
-0.0631987676024437,
0.014... | 0.160117 |
kubectl get pods -l run=my-nginx -o wide ``` ``` NAME READY STATUS RESTARTS AGE IP NODE my-nginx-3800858182-e9ihh 1/1 Running 0 5s 10.244.2.7 kubernetes-minion-ljyd my-nginx-3800858182-j4rm4 1/1 Running 0 5s 10.244.3.8 kubernetes-minion-905m ``` You may notice that the pods have different names, since they are killed a... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/connect-applications-service.md | main | kubernetes | [
0.02796289324760437,
0.008056050166487694,
0.04526781290769577,
-0.05628681555390358,
0.007956517860293388,
-0.034767575562000275,
-0.04899030178785324,
-0.012483571656048298,
0.10058683156967163,
0.022941632196307182,
-0.004287400282919407,
-0.04975712671875954,
-0.020959312096238136,
-0.... | 0.059838 |
the output from the previous commands to create a yaml file as follows. The base64 encoded value should all be on a single line. ```yaml apiVersion: "v1" kind: "Secret" metadata: name: "nginxsecret" namespace: "default" type: kubernetes.io/tls data: # NOTE: Replace the following values with your own base64-encoded cert... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/connect-applications-service.md | main | kubernetes | [
-0.040543634444475174,
0.06017432361841202,
-0.01330573670566082,
-0.03956117480993271,
-0.068379707634449,
-0.013861759565770626,
-0.05154060199856758,
0.013697171583771706,
0.09036925435066223,
0.03997337445616722,
-0.017995504662394524,
-0.07407344877719879,
0.02990267239511013,
-0.0198... | -0.012933 |
the one that is available on the public internet. The `CLUSTER-IP` is only available inside your cluster/private cloud network. Note that on AWS, type `LoadBalancer` creates an ELB, which uses a (long) hostname, not an IP. It's too long to fit in the standard `kubectl get svc` output, in fact, so you'll need to do `kub... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/services/connect-applications-service.md | main | kubernetes | [
-0.043852660804986954,
-0.010556825436651707,
-0.056384794414043427,
-0.0062509216368198395,
0.007302383426576853,
0.02400856465101242,
-0.027362873777747154,
-0.03733561560511589,
0.08039183914661407,
0.03877807781100273,
-0.07618774473667145,
-0.0647224560379982,
-0.020301196724176407,
-... | 0.156736 |
This tutorial shows you how to build and deploy a simple \_(not production ready)\_, multi-tier web application using Kubernetes and [Docker](https://www.docker.com/). This example consists of the following components: \* A single-instance [Redis](https://www.redis.io/) to store guestbook entries \* Multiple web fronte... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateless-application/guestbook.md | main | kubernetes | [
0.015155616216361523,
-0.017134644091129303,
-0.06220390275120735,
-0.047768719494342804,
-0.0274816807359457,
-0.02337450347840786,
-0.04999693110585213,
0.0013956093462184072,
0.004116383846849203,
0.07782702147960663,
-0.02053247205913067,
-0.06132957711815834,
0.051453571766614914,
-0.... | 0.067177 |
10.103.78.24 6379/TCP 6m10s ``` {{< note >}} This manifest file creates a Service named `redis-follower` with a set of labels that match the labels previously defined, so the Service routes network traffic to the Redis Pod. {{< /note >}} ## Set up and Expose the Guestbook Frontend Now that you have the Redis storage of... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateless-application/guestbook.md | main | kubernetes | [
0.014149497263133526,
-0.012800505384802818,
-0.09618953615427017,
-0.03132818639278412,
-0.01535602007061243,
0.020936409011483192,
-0.05243896320462227,
-0.020026251673698425,
0.07196707278490067,
0.018313512206077576,
0.004923155065625906,
0.038858477026224136,
0.013090853579342365,
-0.... | 0.145234 |
page in your browser to view your guestbook. {{< note >}} Try adding some guestbook entries by typing in a message, and clicking Submit. The message you typed appears in the frontend. This message indicates that data is successfully added to Redis through the Services you created earlier. {{< /note >}} ## Scale the Web... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateless-application/guestbook.md | main | kubernetes | [
0.07960235327482224,
-0.03991129621863365,
-0.057971976697444916,
0.02900252677500248,
-0.014588715508580208,
-0.04737049341201782,
-0.07468722015619278,
0.0007153642363846302,
0.03293396905064583,
0.07935407012701035,
0.01588769443333149,
-0.04338838905096054,
0.008282970637083054,
-0.087... | 0.096146 |
This page shows how to create a Kubernetes Service object that exposes an external IP address. ## {{% heading "prerequisites" %}} \* Install [kubectl](/docs/tasks/tools/). \* Use a cloud provider like Google Kubernetes Engine or Amazon Web Services to create a Kubernetes cluster. This tutorial creates an [external load... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateless-application/expose-external-ip-address.md | main | kubernetes | [
-0.023750070482492447,
-0.03806907311081886,
0.025024186819791794,
-0.025412455201148987,
-0.08521217107772827,
-0.009686595760285854,
-0.031574051827192307,
-0.0037739984691143036,
0.07057153433561325,
0.06346309930086136,
-0.06211066618561745,
-0.0714012160897255,
0.009776684455573559,
-... | 0.137405 |
message: ```console Hello, world! Version: 2.0.0 Hostname: 0bd46b45f32f ``` ## {{% heading "cleanup" %}} To delete the Service, enter this command: ```shell kubectl delete services my-service ``` To delete the Deployment, the ReplicaSet, and the Pods that are running the Hello World application, enter this command: ```... | https://github.com/kubernetes/website/blob/main//content/en/docs/tutorials/stateless-application/expose-external-ip-address.md | main | kubernetes | [
0.03371655195951462,
0.02705053985118866,
0.043454915285110474,
-0.09753876179456711,
-0.017000712454319,
-0.07596282660961151,
0.028681887313723564,
-0.03784551844000816,
0.09600568562746048,
0.07112111151218414,
-0.025727448984980583,
-0.015012962743639946,
0.01743575930595398,
0.0411381... | 0.178282 |
This section of the Kubernetes documentation contains references. ## API Reference \* [Glossary](/docs/reference/glossary/) - a comprehensive, standardized list of Kubernetes terminology \* [Kubernetes API Reference](/docs/reference/kubernetes-api/) \* [One-page API Reference for Kubernetes {{< param "version" >}}](/do... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/_index.md | main | kubernetes | [
-0.07485323399305344,
0.00011677129805320874,
0.029931260272860527,
-0.055566832423210144,
-0.028121473267674446,
0.02507379837334156,
0.028663072735071182,
-0.01633146032691002,
0.048064399510622025,
-0.004361649975180626,
-0.042653732001781464,
-0.04119807481765747,
-0.027707865461707115,
... | 0.175815 |
valid YAML input \* [YAML](https://yaml.org/), available as a `kubectl` output format and also used at the HTTP layer Kubernetes also has a custom [protobuf encoding](/docs/reference/using-api/api-concepts/#protobuf-encoding) that is only used within HTTP messages. The `kubectl` tool supports some other output formats,... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/_index.md | main | kubernetes | [
0.0092238774523139,
0.02185295894742012,
-0.016689158976078033,
-0.07179127633571625,
-0.023360928520560265,
0.008886289782822132,
-0.04261142760515213,
-0.07906478643417358,
0.11768017709255219,
0.0039208452217280865,
-0.01904047466814518,
-0.08590329438447952,
0.004635588265955448,
-0.00... | 0.087037 |
\*\*KYAML\*\* is a safer and less ambiguous subset of YAML, initially introduced in Kubernetes v1.34 (alpha) and enabled by default in v1.35 (beta). Designed specifically for Kubernetes, KYAML addresses common YAML pitfalls such as whitespace sensitivity and implicit type coercion while maintaining full compatibility w... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/encodings/kyaml.md | main | kubernetes | [
-0.05236392468214035,
-0.008796712383627892,
0.1198108121752739,
-0.025797851383686066,
-0.05087669938802719,
0.0017142380820587277,
-0.005489435512572527,
-0.061025410890579224,
0.09307368844747543,
0.038075435906648636,
0.03669533133506775,
-0.07854696363210678,
-0.018642915412783623,
-0... | 0.127745 |
`apiVersion: authorization.k8s.io/v1` `import "k8s.io/api/authorization/v1"` ## SubjectAccessReview {#SubjectAccessReview} SubjectAccessReview checks whether or not a user or group can perform an action. --- - \*\*apiVersion\*\*: authorization.k8s.io/v1 - \*\*kind\*\*: SubjectAccessReview - \*\*metadata\*\* ([}}">Objec... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/subject-access-review-v1.md | main | kubernetes | [
-0.04897325485944748,
0.11725369095802307,
-0.016207046806812286,
-0.0036168594378978014,
0.026370039209723473,
-0.04834728688001633,
0.027754178270697594,
-0.013051487505435944,
0.03285995125770569,
0.04751216247677803,
-0.03423217684030533,
-0.10596325993537903,
-0.001051826635375619,
0.... | 0.182329 |
operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. - \*\*resourceAttributes.group\*\* (string) Group is the API Group of the Resource. "\*" means all. - \*\*resourceAttributes.labelSelector\*\* (LabelSelectorAttributes) labelSelector d... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/subject-access-review-v1.md | main | kubernetes | [
-0.07519150525331497,
0.12823604047298431,
-0.09684376418590546,
0.04034429043531418,
-0.015321970917284489,
-0.033702220767736435,
0.11182540655136108,
-0.028280140832066536,
-0.037135977298021317,
-0.08182463049888611,
0.01259419322013855,
-0.19360677897930145,
0.06758374720811844,
-0.05... | 0.130238 |
(string) UID information about the requesting user. - \*\*user\*\* (string) User is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups ## SubjectAccessReviewStatus {#SubjectAccessReviewStatus} SubjectAccessReviewStatus --- - \*\*a... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/subject-access-review-v1.md | main | kubernetes | [
-0.04976312443614006,
0.05572596937417984,
-0.07129622995853424,
0.06504077464342117,
-0.03390776738524437,
-0.0070236013270914555,
0.09780394285917282,
-0.041971441358327866,
-0.042358942329883575,
0.0014851548476144671,
0.0017064536223188043,
-0.04966228827834129,
0.07721122354269028,
0.... | 0.113429 |
`apiVersion: rbac.authorization.k8s.io/v1` `import "k8s.io/api/rbac/v1"` ## ClusterRoleBinding {#ClusterRoleBinding} ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. --- - \*\*apiVersion\*\*: rbac.authorization... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/cluster-role-binding-v1.md | main | kubernetes | [
-0.05072842165827751,
0.012498008087277412,
-0.060770463198423386,
0.04478980228304863,
0.002563206246122718,
0.018474435433745384,
0.04705489054322243,
-0.03218497708439827,
-0.01576143503189087,
0.008717549964785576,
-0.05390509217977524,
-0.0639314129948616,
0.05624569207429886,
0.06050... | 0.142781 |
PUT /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} #### Parameters - \*\*name\*\* (\*in path\*): string, required name of the ClusterRoleBinding - \*\*body\*\*: [}}">ClusterRoleBinding]({{< ref ), required - \*\*dryRun\*\* (\*in query\*): string [}}">dryRun]({{< ref ) - \*\*fieldManager\*\* (\*in query\*... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/cluster-role-binding-v1.md | main | kubernetes | [
-0.004102563951164484,
0.05758402869105339,
-0.05002390220761299,
0.09061355143785477,
-0.04184521734714508,
0.045573364943265915,
0.04459739103913307,
0.0005778966587968171,
-0.034370873123407364,
0.004091708920896053,
-0.030383864417672157,
-0.09529184550046921,
0.0751088559627533,
0.005... | 0.090113 |
`apiVersion: authorization.k8s.io/v1` `import "k8s.io/api/authorization/v1"` ## SelfSubjectAccessReview {#SelfSubjectAccessReview} SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means "in all namespaces". Self is a special case, because users should alw... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/self-subject-access-review-v1.md | main | kubernetes | [
-0.05155688151717186,
0.03770986571907997,
-0.020833320915699005,
0.005625834222882986,
-0.03186182677745819,
-0.04270288720726967,
0.046886373311281204,
0.007603076286613941,
-0.0014044423587620258,
0.007659927476197481,
-0.02645815536379814,
-0.11714164167642593,
0.0007202047272585332,
0... | 0.188276 |
be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. - \*\*resourceAttributes.group\*\* (string) Group is the API Group of the Resource. "\*" means all. - \*\*resourceAttributes.labelSelector\*\* (LabelSelectorAttributes) labelSelector describes the limitation on access based on labe... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/self-subject-access-review-v1.md | main | kubernetes | [
-0.04976661503314972,
0.1402059942483902,
-0.07301504164934158,
0.02011493779718876,
-0.05416345223784447,
-0.004003043752163649,
0.09180755913257599,
-0.029005415737628937,
-0.0020602706354111433,
-0.08019735664129257,
0.01081493403762579,
-0.21849603950977325,
0.05124424770474434,
-0.068... | 0.137169 |
Request POST /apis/authorization.k8s.io/v1/selfsubjectaccessreviews #### Parameters - \*\*body\*\*: [}}">SelfSubjectAccessReview]({{< ref ), required - \*\*dryRun\*\* (\*in query\*): string [}}">dryRun]({{< ref ) - \*\*fieldManager\*\* (\*in query\*): string [}}">fieldManager]({{< ref ) - \*\*fieldValidation\*\* (\*in ... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/self-subject-access-review-v1.md | main | kubernetes | [
-0.03929661214351654,
0.11231058090925217,
0.020792612805962563,
0.022679084911942482,
-0.05807118862867355,
-0.009448004886507988,
0.027574801817536354,
0.03646878898143768,
0.008871118538081646,
0.003604364348575473,
-0.06427793949842453,
-0.11424065381288528,
0.04213147610425949,
0.0185... | 0.082687 |
`apiVersion: authorization.k8s.io/v1` `import "k8s.io/api/authorization/v1"` ## SelfSubjectRulesReview {#SelfSubjectRulesReview} SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mo... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/self-subject-rules-review-v1.md | main | kubernetes | [
-0.042376887053251266,
0.07055137306451797,
0.014735322445631027,
-0.025886064395308495,
-0.028458241373300552,
-0.03449054807424545,
0.043084051460027695,
-0.016447100788354874,
0.01591896452009678,
0.04008237645030022,
-0.012116078287363052,
-0.023983992636203766,
0.004223891533911228,
0... | 0.136534 |
rule applies to. "\*" means all in the specified apiGroups. "\*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. - \*\*status.evaluationError\*\* (string) EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/self-subject-rules-review-v1.md | main | kubernetes | [
-0.09538159519433975,
0.03574143722653389,
-0.010072296485304832,
0.000553666555788368,
-0.026877157390117645,
-0.0389610230922699,
0.04272188991308212,
0.0010672459611669183,
-0.03375901281833649,
-0.0002847611322067678,
-0.03843720257282257,
-0.11298403143882751,
0.06370769441127777,
0.0... | 0.125224 |
`apiVersion: authorization.k8s.io/v1` `import "k8s.io/api/authorization/v1"` ## LocalSubjectAccessReview {#LocalSubjectAccessReview} LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scope... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/local-subject-access-review-v1.md | main | kubernetes | [
-0.04669966548681259,
0.05537353456020355,
-0.023913519456982613,
0.017959123477339745,
0.009790915995836258,
-0.03145366907119751,
0.04081312566995621,
-0.039167098701000214,
0.019806021824479103,
0.03509435057640076,
-0.01806342415511608,
-0.09130677580833435,
0.014650914818048477,
0.055... | 0.122302 |
`apiVersion: rbac.authorization.k8s.io/v1` `import "k8s.io/api/rbac/v1"` ## RoleBinding {#RoleBinding} RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which n... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/role-binding-v1.md | main | kubernetes | [
-0.046701494604349136,
-0.005157409235835075,
-0.06456308811903,
0.044435832649469376,
-0.0107978330925107,
0.024726327508687973,
0.06678055971860886,
-0.0310222078114748,
-0.0033684431109577417,
0.008206906728446484,
-0.034868862479925156,
-0.06311888247728348,
0.060862571001052856,
0.069... | 0.141368 |
(\*in query\*): string [}}">continue]({{< ref ) - \*\*fieldSelector\*\* (\*in query\*): string [}}">fieldSelector]({{< ref ) - \*\*labelSelector\*\* (\*in query\*): string [}}">labelSelector]({{< ref ) - \*\*limit\*\* (\*in query\*): integer [}}">limit]({{< ref ) - \*\*pretty\*\* (\*in query\*): string [}}">pretty]({{<... | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/role-binding-v1.md | main | kubernetes | [
0.02626524493098259,
0.11415311694145203,
-0.0030269715934991837,
0.04978807643055916,
-0.020773280411958694,
0.052979860454797745,
0.11335783451795578,
0.005720336455851793,
-0.04977068677544594,
-0.015541555359959602,
-0.050948865711688995,
-0.1061343103647232,
0.027720294892787933,
-0.0... | 0.044203 |
query\*): boolean [}}">sendInitialEvents]({{< ref ) - \*\*timeoutSeconds\*\* (\*in query\*): integer [}}">timeoutSeconds]({{< ref ) #### Response 200 ([}}">Status]({{< ref )): OK 401: Unauthorized | https://github.com/kubernetes/website/blob/main//content/en/docs/reference/kubernetes-api/authorization-resources/role-binding-v1.md | main | kubernetes | [
-0.0014260815223678946,
0.15864621102809906,
-0.01413545198738575,
0.06838160753250122,
0.019903799518942833,
-0.010709774680435658,
0.08524782210588455,
-0.0018783786799758673,
0.07107088714838028,
0.0014243550831452012,
-0.054751332849264145,
-0.03794344514608383,
0.05069206282496452,
0.... | 0.127153 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.