Skip to content

Commit 84d14e2

Browse files
authored
Fix release 1.9 (kubernetes#6686)
* Trivial change to open release branch * Undo trivial change * add service ipvs overview * Add instructions on how to setup kubectl * Document conntrack dependency for kube-proxy * Add an a This is kind of jarring / missing an article. I'm guessing it should either be ' to a rack of bare metal servers.' or '...to racks of bare metal servers.'. * adding example responses for common issues - support request - code bug report * Trivial change to open release branch * Undo trivial change * Signed-off-by: Ziqi Zhao <zhaoziqi@qiniu.com> (kubernetes#5366) Fix the not-working test case yaml for /doc/concepts/storage/volumes.md * kubectl-overview * temp fix for broken pod and deployment links * Update Table of Solutions for Juju * Revise certificates documentation (kubernetes#5965) * Update review-issues.md Some edits for clarity and condensed language. * Update init-containers.md Fix leading spaces in commands. * Update kubectl-overview.md Fix format. * Update clc.md Fix format. * Update openstack-heat.md The url no need. just highlight. * Typo I believe this should be "users" not "uses" * making explicit hostname uniq requirement * Update scheduling-hugepages.md * Update update-daemon-set.md * fix redirection of PersistentVolume * Update hpa.md * update kubectl instruction * Use the format of kubeadm init * fix spelling error guarnatees to guarantees * add matchLabels description (kubernetes#6020) * search and replace for k8s.github.io to website (kubernetes#6019) * fix scale command of object-management (kubernetes#6011) * Update replicaset.md (kubernetes#6009) * Update secret.md (kubernetes#6008) * specify password for mysql image (kubernetes#5990) * specify password for mysql image * specify password for mysql image * link error for run-stateless-application-deployment.md (kubernetes#5985) * link error for run-stateless-application-deployment.md * link error for run-stateless-application-deployment.md * Add performance implications of inter-pod affinity/anti-affinity (kubernetes#5979) * 404 monthly maintenance - October 2017 (kubernetes#5977) * Updated redirects * More redirects * Add conjure-up to Turnkey Cloud Solutions list (kubernetes#5973) * Add conjure-up to Turnkey Cloud Solutions list * Changed wording slightly * change the StatefulSet to ReplicaSet in reference (kubernetes#5968) * Clarification of failureThreshold of probes (kubernetes#5963) * Mention usage of block storage version param (kubernetes#5925) Mention usage of block storage version (bs-version) parameter to workaround attachment issues using older K8S versions on an OpenStack cloud with path-based endpoints. Resolves: kubernetes#5924 * Update sysctl-cluster.md (kubernetes#5894) Include guide on enabling unsafe sysctls in minikube * Avoid Latin phrases & format note (kubernetes#5889) * Avoid Latin phrases & format note according the Documentation Style Guide * Update scratch.md * Update scratch.md * resolves jekyll rendering error (kubernetes#5976) - chinese isn't understood for keys in YAML frontmatter in jekyll, so replaced it with the english equivalent that doesn't throw the following error on rendering: Error reading file src/kubernetes.github.io/cn/docs/concepts/cluster-administration/device-plugins.md: (<unknown>): could not find expected ':' while scanning a simple key at line 4 column 1 * Change VM to pod. (kubernetes#6022) * Add link to custom metrics. (kubernetes#6023) * Rephrase core group. (kubernetes#6024) * Added explanation on context to when joining (kubernetes#6018) * Update create-cluster-kubeadm.md (kubernetes#5761) Update Canal version in pod network apply commands * Fixes issue kubernetes#5620 (kubernetes#5869) * Fixes issue kubernetes#5620 Signed-off-by: Brad Topol <btopol@us.ibm.com> * Restructured so that review process is for both current and upcoming releases. Added content describing the use of tech reviewers. * Removed incorrect Kubernetes reviewer link. * Fixed tech reviewer URL to now use website * Update pod-priority-preemption.md fix-wrong-link-to-pod-preemption * pod-security-policy.md: add links to the page about admission plugins. * Adding all files for BlaBlaCar case study (kubernetes#5857) * Adding all files for BlaBlaCar case study * Update blablacar.html * Fix changed URL for google containers * Add /docs/reference/auto-generated directory * correct the downwardapi redirect * Remove links using "here" * Rename to /docs/reference/generated directory * add Concept template * Change title to just Ingress * Link mistake (kubernetes#6038) * link mistake * link mistake * skip title check for skip_title_check.txt * skip title check for skip_title_check.txt * remove doesn't exist link. * Fix podpreset task (kubernetes#5705) * Add a simple pod manifest to pod overview (kubernetes#5986) * Split PodPreset concept out from task doc (kubernetes#5984) * Add selector spec description (kubernetes#5789) * Add selector spec description * Fix selector field explanation * Put orphaned topics in TOC. (kubernetes#6051) * static-pod example bad format in the final page (kubernetes#6050) * static-pod example bad format in the final page * static-pod example bad format in the final page * static-pod example bad format in the final page * static-pod example bad format in the final page * static-pod example bad format in the final page * Fix `backoffLimit` field misplacement (kubernetes#6042) It should be placed in JobSpec according to: https://github.com/kubernetes/kubernetes/blob/master/api/swagger-spec/batch_v1.json#L1488-L1514 * Update addons.md (kubernetes#6061) * add info about VMware NSX-T CNI plugin (kubernetes#5987) * add info about VMware NSX-T CNI plugin Hello, I'm VMware Networking and Security Architect and would like to include short information about our CNI plugin implementation similar to what other vendors did Best regards Emil Gagala * Update networking.md * Update networking.md * Update networking.md * Update: Using universal zsh configuration (kubernetes#5669) * Update install-kubectl.md Zsh is not only oh-my-zsh, so I added universal configuration for zsh that also can be used in prezto. * fix merge error after rebase * Operating etcd cluster for Kubernetes bad format in the final page (kubernetes#6056) * Operating etcd cluster for Kubernetes bad format in the final page * Update configure-upgrade-etcd.md * Update configure-upgrade-etcd.md * Usage note and warning tags. (kubernetes#6053) * Usage note and warning tags. * Update configure-upgrade-etcd.md * Update configure-upgrade-etcd.md * Document jekyll includes snippets * Add jekyll includes to docs home toc - Remove extra kubernetes home in toc * document docker cgroupdriver req (kubernetes#5937) * Update test blacklists (kubernetes#6063) * Update toc check blacklist * Update title check blacklist * wip * wip * Fix typo * Document unconfined apparmor profile * Revert "Document the unconfined profile for AppArmor" (kubernetes#6268) * CRD Validation: remove alpha warning, change enable instructions to (kubernetes#6066) disable * Documented service annotation for AWS ELB SSL policy * kubeadm: add a note about the new `--print-join-command` flag. This is a new flag for the `kubeadm token create` command. * Add a note to PDB page * Improve Kubeadm reference doc (kubernetes#6103) * automatically-generated kubeadm reference doc * user-mantained kubeadm reference doc * Documentation for CSIPersistentVolume * change replicaset documentation to use apps/v1 APIs * Update service.md ipvs alpha version -> beta version * Updated Deployment concept docs (kubernetes#6494) * Updated Deployment concept docs * Addressed comments * Documentation for volume scheduling alpha feature * Update admission control docs for webhooks * Improve DNS documentation (kubernetes#6479) * update ds for 1.9 * Update service.md * Update service.md * Revert "begin updating webhook documentation" (kubernetes#6575) * Update version numbers to include 1.9 (kubernetes#6518) * Update site versions for 1.9 * Removed 1.4 docs * Update _config.yml * Update _config.yml * updates for raw block devices * rbac: docs for aggregated cluster roles (kubernetes#6474) * Added IPv6 information for Kubelet arguments (kubernetes#6498) * Added IPv6 info to kube-proxy arguments * Added IPv6 information for argument for kubelet * Update PVC resizing documentation (kubernetes#6487) * Updates for Windows Server version 1709 with K8s v1.8 (kubernetes#6180) * Updated for WSv1709 and K8s v1.8 * Updated picture and CNI config * Fixed formatting on CNI Config * Updated docs to reference Microsoft/SDN GitHub docs * fix typo * Workaround for Jekyllr frontmatter * Added section on features and limitations, with example yaml files. * Update index.md * Added kubeadm section, few other small fixes * Few minor grammar fixes * Update access-cluster.md with a comment that for IPv6 the user should use [::1] for the localhost * Addressed a number of issues brought up against the base PR * Fixed windows-host-setup link * Rewrite PodSecurityPolicy guide * Update index.md Signed-off-by: Alin Balutoiu <abalutoiu@cloudbasesolutions.com> Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org> * Spelling correction and sentence capitalization. - Corrected the spelling error for storing, was put in as 'stoing'. - Capitalized list items. - Added '.' at end of sentences in the list items. * Update index.md * Update index.md * Addressed comments and rebased * Fixed formatting * Fixed formatting * Updated header link * Updated hyperlinks * Updated warning * formatting * formatting * formatting * Revert "Update access-cluster.md with a comment that for IPv6" This reverts commit 31e4dbd. * Revert "fix typo" This reverts commit c056787. * Revert "Workaround for Jekyllr frontmatter" This reverts commit b84ac59. * Fixed grammatical issues and reverted non-related commits * Revert "Rewrite PodSecurityPolicy guide" This reverts commit 5d39cfe. * Revert "Spelling correction and sentence capitalization." This reverts commit 47eed43. * Fixed auto-numbering * Minor formatting updates * CoreDNS feature documentation (kubernetes#6463) * Initial placeholder PR for CoreDNS feature documentation * Remove from admin, add content * Fix missing endcapture * Add to tasks.yml * Review feedback * Postpone Deletion of a Persistent Volume Claim in case It Is Used by a Pod (kubernetes#6415) * Postpone Deletion of a Persistent Volume Claim in case It Is Used by a Pod A new feature PVC Protection was added into K8s 1.9 that's why this documentation change is needed. * Added tag at the top of each new area. * Fix typo * Fix: switched on in (all kubelets) -> (all K8s components). * Added link to admission controller * Moved PVC Protection configuration into Before you begin section. * Added steps how to verify PVC Protection feature. * Fixes for admission controller plugin description and for PVC Protection description in PVC lifecycle. * Testing official rendering of enumerations (1., 2., 3., etc.) * Re-write to address comments from review. * Fixed definition when a PVC is in active use by a pod. * Change auditing docs page for 1.9 release (kubernetes#6427) * Change auditing docs page for 1.9 release Signed-off-by: Mik Vyatskov <vmik@google.com> * Address review comments Signed-off-by: Mik Vyatskov <vmik@google.com> * Address review comments Signed-off-by: Mik Vyatskov <vmik@google.com> * Address review comments Signed-off-by: Mik Vyatskov <vmik@google.com> * Fix broken link Signed-off-by: Mik Vyatskov <vmik@google.com> * short circuit deny docs (kubernetes#6536) * line wrap * short circuit deny * address comments * Add kubeadm 1.9 upgrade docs (kubernetes#6485) * kubeadm: Improve kubeadm documentation for v1.9 (kubernetes#6645) * Update admission control docs for webhooks (re-send kubernetes#6368) (kubernetes#6650) * Update admission control docs for webhooks * update in response to comments * Revamp rkt and add CRI-O as alternative runtime (kubernetes#6371) Signed-off-by: Lorenzo Fontana <lo@linux.com> * Documented NLB for Kubernetes 1.9 (kubernetes#6260) * Added IPV6 information to setup cluster using kubeadm (kubernetes#6465) * Added IPV6 information to setup cluster using kubeadm * Updated kubeadm.md & create-cluster-kubeadm.md with IPv6 related information * Added IPv6 options for kubeadm --init & automated address binding for kube-proxy based on version of IP configured for API server) * Changes to kubeadm.md as per comments * Modified kubeadm.md and create-cluster-kubeadm.md * Implemented changes requested by zacharysarah * Removed autogenerated kubeadm.md changes * StatefulSet 1.9 updates. (kubernetes#6550) * updates sts concept and tutorials to use 1.9 apps/v1 * Update statefulset.md * clarify pod name label * Garbage collection updates for 1.9 (kubernetes#6555) * 1.9 gc policy update * carify deletion * Couple nits for dnsConfig doc (kubernetes#6652) * Add doc for AllowedFlexVolume (kubernetes#6563) * Update OpenStack Cloud Provider API support for v1.9 (kubernetes#6638) * Flex volume is GA. Remove alpha notation. (kubernetes#6666) * Update generated ref docs for Kubernetes and Federation components. (kubernetes#6658) * Update generated ref docs for Kubernetes and Federation components. * Rename kubectl-options to kubectl. * Add title to kubectl. * Fix double synopsis. * Update Federation API ref docs for 1.9. (kubernetes#6636) * Update federation API ref docs. * Move and redirect. * Move generated Federation docs to the generated directory. * Fix titles. * Type * Fix titles * Update auto-generated Kubernetes APi ref docs. (kubernetes#6646) * Update kubectl commands for 1.9 (kubernetes#6635) * add ExtendedResourceToleration admission controller (kubernetes#6618) * Update API reference paths for v1.9 (kubernetes#6681)
1 parent 08af95d commit 84d14e2

File tree

2 files changed

+7
-122
lines changed

2 files changed

+7
-122
lines changed

docs/concepts/policy/pod-security-policy.md

Lines changed: 2 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -171,86 +171,8 @@ make sure `volumes` contains the `flexVolume` volume type, no flex volume driver
171171
otherwise. For example:
172172

173173
```yaml
174-
# Authorize all service accounts in a namespace:
175-
- kind: Group
176-
apiGroup: rbac.authorization.k8s.io
177-
name: system:serviceaccounts
178-
# Or equivalently, all authenticated users in a namespace:
179-
- kind: Group
180-
apiGroup: rbac.authorization.k8s.io
181-
name: system:authenticated
182-
```
183-
184-
For more examples of RBAC bindings, see [Role Binding
185-
Examples](/docs/admin/authorization/rbac/#role-binding-examples). For a complete
186-
example of authorizing a PodSecurityPolicy, see
187-
[below](#example).
188-
189-
190-
### Troubleshooting
191-
192-
- The [Controller Manager](/docs/admin/kube-controller-manager/) must be run
193-
against [the secured API port](/docs/admin/accessing-the-api/), and must not
194-
have superuser permissions. Otherwise requests would bypass authentication and
195-
authorization modules, all PodSecurityPolicy objects would be allowed, and users
196-
would be able to create privileged containers. For more details on configuring
197-
Controller Manager authorization, see [Controller
198-
Roles](/docs/admin/authorization/rbac/#controller-roles).
199-
200-
## Policy Order
201-
202-
In addition to restricting pod creation and update, pod security policies can
203-
also be used to provide default values for many of the fields that it
204-
controls. When multiple policies are available, the pod security policy
205-
controller selects policies in the following order:
206-
207-
1. If any policies successfully validate the pod without altering it, they are
208-
used.
209-
2. Otherwise, the first valid policy in alphabetical order is used.
210-
211-
## Example
212-
213-
_This example assumes you have a running cluster with the PodSecurityPolicy
214-
admission controller enabled and you have cluster admin privileges._
215-
216-
### Set up
217-
218-
Set up a namespace and a service account to act as for this example. We'll use
219-
this service account to mock a non-admin user.
220-
221-
```shell
222-
$ kubectl create namespace psp-example
223-
$ kubectl create serviceaccount -n psp-example fake-user
224-
$ kubectl create rolebinding -n psp-example fake-editor --clusterrole=edit --serviceaccount=psp-example:fake-user
225-
```
226-
227-
To make it clear which user we're acting as and save some typing, create 2
228-
aliases:
229-
230-
```shell
231-
$ alias kubectl-admin='kubectl -n psp-example'
232-
$ alias kubectl-user='kubectl --as=system:serviceaccount:psp-example:fake-user -n psp-example'
233-
```
234-
235-
### Create a policy and a pod
236-
237-
Define the example PodSecurityPolicy object in a file. This is a policy that
238-
simply prevents the creation of privileged pods.
239-
240-
{% include code.html language="yaml" file="example-psp.yaml" ghlink="/docs/concepts/policy/example-psp.yaml" %}
241-
242-
And create it with kubectl:
243-
244-
```shell
245-
$ kubectl-admin create -f example-psp.yaml
246-
```
247-
248-
Now, as the unprivileged user, try to create a simple pod:
249-
250-
```shell
251-
$ kubectl-user create -f- <<EOF
252-
apiVersion: v1
253-
kind: Pod
174+
apiVersion: extensions/v1beta1
175+
kind: PodSecurityPolicy
254176
metadata:
255177
name: allow-flex-volumes
256178
spec:

docs/tasks/debug-application-cluster/audit.md

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -37,48 +37,11 @@ of rules in order. The first matching rule sets the [audit level][auditing-level
3737
of the event. The audit policy object structure is defined in the
3838
[`audit.k8s.io` API group][auditing-api].
3939

40-
`AdvancedAuditing` is customizable in two ways. Policy, which determines what's recorded,
41-
and backends, which persist records. Backend implementations include logs files and
42-
webhooks.
43-
44-
The structure of audit events changes when enabling the `AdvancedAuditing` feature
45-
flag. This includes some cleanups, such as the `method` reflecting the verb evaluated
46-
by the [authorization layer](/docs/admin/authorization/) instead of the [HTTP verb](/docs/admin/authorization/#determine-the-request-verb).
47-
Also, instead of always generating two events per request, events are recorded with an associated "stage".
48-
The known stages are:
49-
50-
- `RequestReceived` - The stage for events generated as soon as the audit handler receives the request.
51-
- `ResponseStarted` - Once the response headers are sent, but before the response body is sent. This stage is only generated for long-running requests (e.g. watch).
52-
- `ResponseComplete` - Once the response body has been completed.
53-
- `Panic` - Events generated when a panic occurred.
54-
55-
### Audit Policy
56-
57-
Audit policy is a document defining rules about what events should be recorded.
58-
The policy is passed to the [kube-apiserver][kube-apiserver] using the
59-
`--audit-policy-file` flag.
60-
61-
```
62-
--audit-policy-file=/etc/kubernetes/audit-policy.yaml
63-
```
64-
65-
If `AdvancedAuditing` is enabled and this flag is omitted, no events are logged.
66-
67-
The policy file holds rules that determine the level of an event. Known audit levels are:
68-
69-
- `None` - don't log events that match this rule.
70-
- `Metadata` - log request metadata (requesting user, timestamp, resource, verb, etc.) but not request or response body.
71-
- `Request` - log event metadata and request body but not response body.
72-
- `RequestResponse` - log event metadata, request and response bodies.
73-
74-
When an event is processed, it's compared against the list of rules in order.
75-
The first matching rule sets the audit level of the event. The audit policy is
76-
defined by the [`audit.k8s.io` API group][audit-api].
77-
Some new fields are supported in beta version, like `resourceNames` and `omitStages`.
78-
79-
In Kubernetes 1.8 `kind` and `apiVersion` along with `rules` __must__ be provided in
80-
the audit policy file. A policy file with 0 rules, or a policy file that doesn't provide
81-
a valid `apiVersion` and `kind` value will be treated as illegal.
40+
You can pass a file with the policy to [kube-apiserver][kube-apiserver]
41+
using the `--audit-policy-file` flag. If the flag is omitted, no events are logged.
42+
__Note:__ `kind` and `apiVersion` fields along with `rules` __must__ be provided
43+
in the audit policy file. A policy with no (0) rules, or a policy that doesn't
44+
provide valid `apiVersion` and `kind` values is treated as illegal.
8245

8346
Some example audit policy files:
8447

0 commit comments

Comments
 (0)