Skip to content

Commit 1954605

Browse files
Merge branch 'dev-1.33' into dev-1.33-ga
2 parents 8621bee + 5b14254 commit 1954605

File tree

1,233 files changed

+76314
-5075
lines changed

Some content is hidden

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

1,233 files changed

+76314
-5075
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ nohup.out
3232
.hugo_build.lock
3333

3434
# Netlify Functions build output
35-
package-lock.json
3635
/functions/
3736
/node_modules/
3837

.gitmodules

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[submodule "themes/docsy"]
2-
path = themes/docsy
3-
url = https://github.com/google/docsy.git
4-
branch = v0.3.0
51
[submodule "api-ref-generator"]
62
path = api-ref-generator
73
url = https://github.com/kubernetes-sigs/reference-docs

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# change is that the Hugo version is now an overridable argument rather than a fixed
55
# environment variable.
66

7-
FROM docker.io/library/golang:1.23.0-alpine3.20
7+
FROM docker.io/library/golang:1.23.1-alpine3.20
88

99
RUN apk add --no-cache \
1010
curl \
@@ -22,11 +22,12 @@ RUN mkdir $HOME/src && \
2222
cd "hugo-${HUGO_VERSION}" && \
2323
go install --tags extended
2424

25-
FROM docker.io/library/golang:1.23.0-alpine3.20
25+
FROM docker.io/library/golang:1.23.1-alpine3.20
2626

2727
RUN apk add --no-cache \
2828
runuser \
2929
git \
30+
gcompat \
3031
openssh-client \
3132
rsync \
3233
npm

Makefile

+18-7
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,24 @@ NETLIFY_FUNC = $(NODE_BIN)/netlify-lambda
77
# CONTAINER_ENGINE=podman make container-image
88
CONTAINER_ENGINE ?= docker
99
IMAGE_REGISTRY ?= gcr.io/k8s-staging-sig-docs
10-
IMAGE_VERSION=$(shell scripts/hash-files.sh Dockerfile Makefile | cut -c 1-12)
10+
IMAGE_VERSION=$(shell scripts/hash-files.sh Dockerfile Makefile package.json package-lock.json | cut -c 1-12)
1111
CONTAINER_IMAGE = $(IMAGE_REGISTRY)/k8s-website-hugo:v$(HUGO_VERSION)-$(IMAGE_VERSION)
1212
# Mount read-only to allow use with tools like Podman in SELinux mode
1313
# Container targets don't need to write into /src
1414
CONTAINER_RUN = "$(CONTAINER_ENGINE)" run --rm --interactive --tty --volume "$(CURDIR):/src:ro,Z"
15+
CONTAINER_RUN_TTY = "$(CONTAINER_ENGINE)" run --rm --interactive --tty
16+
CONTAINER_HUGO_MOUNTS = \
17+
--read-only \
18+
--mount type=bind,source=$(CURDIR)/.git,target=/src/.git,readonly \
19+
--mount type=bind,source=$(CURDIR)/archetypes,target=/src/archetypes,readonly \
20+
--mount type=bind,source=$(CURDIR)/assets,target=/src/assets,readonly \
21+
--mount type=bind,source=$(CURDIR)/content,target=/src/content,readonly \
22+
--mount type=bind,source=$(CURDIR)/data,target=/src/data,readonly \
23+
--mount type=bind,source=$(CURDIR)/i18n,target=/src/i18n,readonly \
24+
--mount type=bind,source=$(CURDIR)/layouts,target=/src/layouts,readonly \
25+
--mount type=bind,source=$(CURDIR)/static,target=/src/static,readonly \
26+
--mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 \
27+
--mount type=bind,source=$(CURDIR)/hugo.toml,target=/src/hugo.toml,readonly
1528

1629
CCRED=\033[0;31m
1730
CCEND=\033[0m
@@ -98,15 +111,13 @@ docker-push: ## Build a multi-architecture image and push that into the registry
98111

99112
container-build: module-check
100113
mkdir -p public
101-
$(CONTAINER_RUN) --read-only \
102-
--mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 \
103-
--mount type=bind,source=$(CURDIR)/public,target=/src/public $(CONTAINER_IMAGE) \
104-
hugo --cleanDestinationDir --buildDrafts --buildFuture --environment preview --noBuildLock
114+
$(CONTAINER_RUN_TTY) $(CONTAINER_HUGO_MOUNTS) $(CONTAINER_IMAGE) \
115+
hugo --destination /tmp/public --cleanDestinationDir --buildDrafts --buildFuture --environment preview --noBuildLock
105116

106117
# no build lock to allow for read-only mounts
107118
container-serve: module-check ## Boot the development server using container.
108-
$(CONTAINER_RUN) --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only \
109-
--mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) \
119+
$(CONTAINER_RUN_TTY) --cap-drop=ALL --cap-add=AUDIT_WRITE $(CONTAINER_HUGO_MOUNTS) \
120+
-p 1313:1313 $(CONTAINER_IMAGE) \
110121
hugo server --buildDrafts --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/public --cleanDestinationDir --noBuildLock
111122

112123
test-examples:

OWNERS_ALIASES

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
aliases:
22
sig-docs-blog-owners: # Approvers for blog content
33
- mrbobbytables
4+
- natalisucks
45
- nate-double-u
56
- sftim
67
sig-docs-blog-reviewers: # Reviewers for blog content
78
- Gauravpadam
89
- mrbobbytables
10+
- natalisucks
911
- nate-double-u
1012
- sftim
1113
sig-docs-website-owners: # Admins for overall website
@@ -60,11 +62,11 @@ aliases:
6062
- katcosgrove
6163
- natalisucks
6264
- nate-double-u
65+
- rayandas # RT 1.33 Docs Lead
6366
- reylejano
6467
- salaxander
6568
- sftim
6669
- tengqm
67-
- chanieljdan # RT 1.32 Docs Lead
6870
sig-docs-en-reviews: # PR reviews for English content
6971
- dipesh-rawat
7072
- divya-mohan0209
@@ -156,10 +158,10 @@ aliases:
156158
- ysyukr
157159
sig-docs-leads: # Website chairs and tech leads
158160
- divya-mohan0209
161+
- katcosgrove
159162
- natalisucks
160163
- reylejano
161164
- salaxander
162-
- sftim
163165
- tengqm
164166
sig-docs-zh-owners: # Admins for Chinese content
165167
- chenrui333

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ git clone https://github.com/kubernetes/website.git
3030
cd website
3131
```
3232

33-
The Kubernetes website uses the [Docsy Hugo theme](https://github.com/google/docsy#readme). Even if you plan to run the website in a container, we strongly recommend pulling in the submodule and other development dependencies by running the following:
33+
The Kubernetes website uses git submodules. Even if you plan to run the website in a container, we strongly recommend pulling in the submodule and other development dependencies by running the following:
3434

3535
### Windows
3636

assets/js/banner-dismiss.js

+18-14
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,25 @@ $(document).ready(function() {
2121

2222
/* Check the presence of a cookie */
2323
let announcement = document.querySelector("#announcement");
24-
let token = `announcement_ack_${announcement.getAttribute('data-announcement-name').replace(/\s/g, '_')}`; // Generate the unique token for announcement
25-
let acknowledged = getCookie(token);
26-
if (acknowledged === "true") {
27-
announcement.remove(); // Remove the announcement if the cookie is set
28-
}
29-
else {
30-
announcement.classList.add('display-announcement') // Display the announcement if the cookie is not set
31-
}
24+
if (announcement) {
25+
let token = `announcement_ack_${announcement.getAttribute('data-announcement-name').replace(/\s/g, '_')}`; // Generate the unique token for announcement
26+
let acknowledged = getCookie(token);
27+
if (acknowledged === "true") {
28+
announcement.remove(); // Remove the announcement if the cookie is set
29+
}
30+
else {
31+
announcement.classList.add('display-announcement') // Display the announcement if the cookie is not set
32+
}
33+
}
3234

3335
/* Driver code to set the cookie */
3436
let button = document.querySelector('#banner-dismiss');
35-
button.removeAttribute('style');
36-
button.addEventListener('click', function() {
37-
setCookie(token, "true",
38-
button.getAttribute('data-ttl')); // Set a cookie with time to live parameter
39-
announcement.remove();
40-
});
37+
if (button) {
38+
button.removeAttribute('style');
39+
button.addEventListener('click', function() {
40+
setCookie(token, "true",
41+
button.getAttribute('data-ttl')); // Set a cookie with time to live parameter
42+
announcement.remove();
43+
});
44+
}
4145
});

assets/js/sweetalert-2.1.2.min.js

-1
This file was deleted.

assets/js/toastr-2.1.4.min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/scss/_base.scss

+15-4
Original file line numberDiff line numberDiff line change
@@ -545,16 +545,27 @@ section#cncf {
545545
margin-bottom: 20px;
546546
}
547547

548-
#desktopKCButton {
549-
position: absolute;
548+
// All #desktopKCButton blocks are left for back compatibility and
549+
// should be removed later, leaving .desktopKCButton only
550+
// See https://github.com/kubernetes/website/pull/49167 for details
551+
#desktopKCButton, .desktopKCButton {
552+
display: inline-block;
550553
font-size: 18px;
551554
background-color: $dark-grey;
552555
border-radius: 8px;
553556
color: $white;
557+
padding: 2px 8px;
558+
margin: 5px;
559+
}
560+
561+
#desktopKCButton {
562+
display: inline;
563+
position: absolute;
554564
padding: 20px 10px 20px 10px;
565+
margin: 0;
555566
}
556567

557-
#desktopKCButton:hover{
568+
#desktopKCButton:hover, .desktopKCButton:hover{
558569
background-color: #ffffff;
559570
color: #326ce5;
560571
transition: 150ms;
@@ -567,7 +578,7 @@ section#cncf {
567578
border-radius: 8px;
568579
color: $primary;
569580
padding: 15px 30px 15px 80px;
570-
margin-bottom: 15px;
581+
margin-bottom: 35px;
571582

572583
&:before {
573584
content: "";

assets/scss/_custom.scss

+22-11
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,7 @@ body.td-home main[role="main"] > section:first-of-type .content p:first-child {
9898

9999
body.td-404 main .error-details {
100100
max-width: 1100px;
101-
margin-left: auto;
102-
margin-right: auto;
103-
margin-top: 4em;
104-
margin-bottom: 0;
101+
margin: 0 auto;
105102
}
106103

107104
/* Global - Mermaid.js diagrams */
@@ -1138,7 +1135,7 @@ body.cid-community #cncf-code-of-conduct h2:after {
11381135
color: #fff;
11391136
padding: 0;
11401137
margin: 0;
1141-
width: 100vw;
1138+
width: 100%;
11421139
}
11431140
#caseStudies body > #deprecation-warning, body.cid-casestudies > #deprecation-warning {
11441141
padding-top: 32px;
@@ -1591,7 +1588,7 @@ html.no-js body div#announcement {
15911588
// default background is blue; overrides are possible
15921589
color: #fff;
15931590
display: none; // When javascript is available, Let javascript handle the state of the announcement
1594-
1591+
15951592
.announcement-main {
15961593
margin-left: auto;
15971594
margin-right: auto;
@@ -1828,7 +1825,7 @@ div.alert > em.javascript-required {
18281825
align-items: center;
18291826
background-color: #fff;
18301827
border: 1px solid #4c4c4c;
1831-
border-radius: 20px;
1828+
border-radius: 20px;
18321829
vertical-align: middle;
18331830
flex-grow: 1;
18341831
overflow-x: hidden;
@@ -1857,7 +1854,7 @@ div.alert > em.javascript-required {
18571854
#search .pagefind-ui form input {
18581855
background-color: #fff;
18591856
border: 1px solid #4c4c4c;
1860-
border-radius: 20px;
1857+
border-radius: 20px;
18611858
overflow-x: hidden;
18621859
width: auto;
18631860
padding: 6px 10px !important;
@@ -1912,7 +1909,7 @@ body.td-search #search {
19121909
}
19131910

19141911
/* CSS for 'figure' full-screen display */
1915-
1912+
19161913
/* Define styles for full-screen overlay */
19171914
.figure-fullscreen-overlay {
19181915
position: fixed;
@@ -1941,7 +1938,7 @@ body.td-search #search {
19411938
/* Define styles for close button */
19421939
.figure-close-button {
19431940
position: absolute;
1944-
top: 1%;
1941+
top: 1%;
19451942
right: 2%;
19461943
cursor: pointer;
19471944
font-size: calc(5vw + 10px);
@@ -1950,10 +1947,24 @@ body.td-search #search {
19501947

19511948
.code-sample > .copy-code-icon {
19521949
cursor: pointer;
1953-
text-align: right;
1950+
display: flex;
1951+
gap:1rem;
1952+
justify-content: right;
19541953
padding: 0.2rem;
19551954
}
19561955

1956+
.includecode .highlight {
1957+
margin-top: 0;
1958+
margin-bottom: 0;
1959+
}
1960+
#toast-container > *{
1961+
background: $primary;
1962+
}
1963+
1964+
.toast-success {
1965+
background-color: $primary !important;
1966+
color: #ffffff !important;
1967+
}
19571968

19581969
// handle main page features on narrow viewports
19591970
@media screen and (max-width: 768px) {

assets/scss/_desktop.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$main-max-width: 1200px;
22
$vendor-strip-height: 44px;
3-
$video-section-height: 550px;
3+
$video-section-height: 580px;
44

55
@media screen and (min-width: 1024px) {
66

@@ -96,4 +96,4 @@ $video-section-height: 550px;
9696
min-height: 260px;
9797
}
9898
}
99-
}
99+
}

assets/scss/_tablet.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ $video-section-height: 400px;
136136
#video {
137137
height: $video-section-height;
138138
display: block;
139-
height: 500px;
139+
height: 550px;
140140

141141
& > .light-text {
142142
display: block;

content/bn/case-studies/box/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h2>Impact</h2>
4141

4242
<p>Box's cloud native journey accelerated that June, when Ghods attended <a href="https://www.docker.com/events/dockercon">DockerCon</a>. The company had come to the realization that it could no longer run its applications only off bare metal, and was researching containerizing with Docker, virtualizing with OpenStack, and supporting public cloud.</p>
4343

44-
<p>At that conference, Google announced the release of its Kubernetes container management system, and Ghods was won over. "We looked at a lot of different options, but Kubernetes really stood out, especially because of the incredibly strong team of <a href="https://research.google.com/pubs/pub43438.html">Borg</a> veterans and the vision of having a completely infrastructure-agnostic way of being able to run cloud software," he says, referencing Google's internal container orchestrator Borg. "The fact that on day one it was designed to run on bare metal just as well as <a href="https://cloud.google.com/">Google Cloud</a> meant that we could actually migrate to it inside of our data centers, and then use those same tools and concepts to run across public cloud providers as well."</p>
44+
<p>At that conference, Google announced the release of its Kubernetes container management system, and Ghods was won over. "We looked at a lot of different options, but Kubernetes really stood out, especially because of the incredibly strong team of <a href="https://research.google/pubs/large-scale-cluster-management-at-google-with-borg/">Borg</a> veterans and the vision of having a completely infrastructure-agnostic way of being able to run cloud software," he says, referencing Google's internal container orchestrator Borg. "The fact that on day one it was designed to run on bare metal just as well as <a href="https://cloud.google.com/">Google Cloud</a> meant that we could actually migrate to it inside of our data centers, and then use those same tools and concepts to run across public cloud providers as well."</p>
4545

4646
<p>Another plus: Ghods liked that <a href="https://kubernetes.io/">Kubernetes</a> has a universal set of API objects like pod, service, replica set and deployment object, which created a consistent surface to build tooling against. "Even PaaS layers like <a href="https://www.openshift.com/">OpenShift</a> or <a href="http://deis.io/">Deis</a> that build on top of Kubernetes still treat those objects as first-class principles," he says. "We were excited about having these abstractions shared across the entire ecosystem, which would result in a lot more momentum than we saw in other potential solutions."</p>
4747

content/bn/docs/concepts/workloads/pods/_index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ init কন্টেইনারগুলির জন্য আপনাকে
392392
কুবারনেটিস কেন অন্যান্য রিসোর্সগুলিতে মোড়ানোর প্রসঙ্গটি বোঝার জন্য একটি সাধারণ পড API (যেমন {{< glossary_tooltip text="স্টেটফুল সেট" term_id="statefulset" >}}) বা {{< glossary_tooltip text="ডিপলয়মেন্ট" term_id="deployment">}}) তে , আপনি পূর্ববর্তী আর্ট সম্পর্কে পড়তে পারেন, যার মধ্যে রয়েছে:
393393

394394
* [Aurora](https://aurora.apache.org/documentation/latest/reference/configuration/#job-schema)
395-
* [Borg](https://research.google.com/pubs/pub43438.html)
396-
* [Marathon](https://mesosphere.github.io/marathon/docs/rest-api.html)
395+
* [Borg](https://research.google/pubs/large-scale-cluster-management-at-google-with-borg/)
396+
* [Marathon](https://github.com/d2iq-archive/marathon)
397397
* [Omega](https://research.google/pubs/pub41684/)
398398
* [Tupperware](https://engineering.fb.com/data-center-engineering/tupperware/)

0 commit comments

Comments
 (0)