Fix/re-introduce custom Jekyll tags for better glossary integration (#6163)

reviewable/pr6212/r1
Jessica Yao 2017-11-06 13:36:24 -08:00 committed by Zach Corleissen
parent 0abbfdc12e
commit 53cf7defd5
52 changed files with 546 additions and 225 deletions

51
Gemfile
View File

@ -1,4 +1,53 @@
source "https://rubygems.org" source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins # gem "github-pages", group: :jekyll_plugins
gem "jekyll", "3.6.0"
group :github_pages_compatible do
gem "json", "~> 1.7", ">= 1.7.7"
gem "coffee-script", "~> 2.4"
gem "coffee-script-source", "~> 1.12"
gem "ethon", "~> 0.10"
gem "execjs", "~> 2.7"
gem "minima", "~> 2.0"
gem "terminal-table", "~> 1.4"
gem "unicode-display_width", "~> 1.1"
end
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
gem "jekyll-sitemap"
gem "jekyll-gist"
gem "jekyll-paginate", "1.1.0"
gem "jekyll-seo-tag"
gem "jekyll-avatar", "~> 0.4"
gem "jekyll-coffeescript", "~> 1.0"
gem "jekyll-default-layout", "~> 0.1"
gem "jekyll-github-metadata", "~> 2.2"
gem "jekyll-optional-front-matter", "~> 0.1"
gem "jekyll-readme-index", "0.0.3"
gem "jekyll-redirect-from", "~> 0.11"
gem "jekyll-relative-links", "~> 0.2"
gem "jekyll-swiss", "~> 0.4"
gem "jekyll-theme-architect", "0.0.3"
gem "jekyll-theme-cayman", "0.0.3"
gem "jekyll-theme-dinky", "0.0.3"
gem "jekyll-theme-hacker", "0.0.3"
gem "jekyll-theme-leap-day", "0.0.3"
gem "jekyll-theme-merlot", "0.0.3"
gem "jekyll-theme-midnight", "0.0.3"
gem "jekyll-theme-minimal", "0.0.3"
gem "jekyll-theme-modernist", "0.0.3"
gem "jekyll-theme-primer", "~> 0.1"
gem "jekyll-theme-slate", "0.0.3"
gem "jekyll-theme-tactile", "0.0.3"
gem "jekyll-theme-time-machine", "0.0.3"
gem "jekyll-titles-from-headings", "~> 0.1"
end
gem "jekyll-include-cache", "~> 0.1" gem "jekyll-include-cache", "~> 0.1"
gem "kramdown", "~> 1.11"
gem "rouge", "~> 2.0"
gem "pry"

View File

@ -1,123 +1,61 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
activesupport (4.2.7) addressable (2.5.2)
i18n (~> 0.7) public_suffix (>= 2.0.2, < 4.0)
json (~> 1.7, >= 1.7.7) coderay (1.1.2)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.0)
public_suffix (~> 2.0, >= 2.0.2)
coffee-script (2.4.1) coffee-script (2.4.1)
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.12.2) coffee-script-source (1.12.2)
colorator (1.1.0) colorator (1.1.0)
ethon (0.10.1) ethon (0.11.0)
ffi (>= 1.3.0) ffi (>= 1.3.0)
execjs (2.7.0) execjs (2.7.0)
faraday (0.10.0) faraday (0.13.1)
multipart-post (>= 1.2, < 3) multipart-post (>= 1.2, < 3)
ffi (1.9.14) ffi (1.9.18)
forwardable-extended (2.6.0) forwardable-extended (2.6.0)
gemoji (2.1.0) jekyll (3.6.0)
github-pages (112)
activesupport (= 4.2.7)
github-pages-health-check (= 1.3.0)
jekyll (= 3.3.1)
jekyll-avatar (= 0.4.2)
jekyll-coffeescript (= 1.0.1)
jekyll-default-layout (= 0.1.4)
jekyll-feed (= 0.8.0)
jekyll-gist (= 1.4.0)
jekyll-github-metadata (= 2.2.0)
jekyll-mentions (= 1.2.0)
jekyll-optional-front-matter (= 0.1.2)
jekyll-paginate (= 1.1.0)
jekyll-readme-index (= 0.0.3)
jekyll-redirect-from (= 0.11.0)
jekyll-relative-links (= 0.2.1)
jekyll-sass-converter (= 1.3.0)
jekyll-seo-tag (= 2.1.0)
jekyll-sitemap (= 0.12.0)
jekyll-swiss (= 0.4.0)
jekyll-theme-architect (= 0.0.3)
jekyll-theme-cayman (= 0.0.3)
jekyll-theme-dinky (= 0.0.3)
jekyll-theme-hacker (= 0.0.3)
jekyll-theme-leap-day (= 0.0.3)
jekyll-theme-merlot (= 0.0.3)
jekyll-theme-midnight (= 0.0.3)
jekyll-theme-minimal (= 0.0.3)
jekyll-theme-modernist (= 0.0.3)
jekyll-theme-primer (= 0.1.5)
jekyll-theme-slate (= 0.0.3)
jekyll-theme-tactile (= 0.0.3)
jekyll-theme-time-machine (= 0.0.3)
jekyll-titles-from-headings (= 0.1.3)
jemoji (= 0.7.0)
kramdown (= 1.11.1)
liquid (= 3.0.6)
listen (= 3.0.6)
mercenary (~> 0.3)
minima (= 2.0.0)
rouge (= 1.11.1)
terminal-table (~> 1.4)
github-pages-health-check (1.3.0)
addressable (~> 2.3)
net-dns (~> 0.8)
octokit (~> 4.0)
public_suffix (~> 2.0)
typhoeus (~> 0.7)
html-pipeline (2.4.2)
activesupport (>= 2)
nokogiri (>= 1.4)
i18n (0.7.0)
jekyll (3.3.1)
addressable (~> 2.4) addressable (~> 2.4)
colorator (~> 1.0) colorator (~> 1.0)
jekyll-sass-converter (~> 1.0) jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1) jekyll-watch (~> 1.1)
kramdown (~> 1.3) kramdown (~> 1.14)
liquid (~> 3.0) liquid (~> 4.0)
mercenary (~> 0.3.3) mercenary (~> 0.3.3)
pathutil (~> 0.9) pathutil (~> 0.9)
rouge (~> 1.7) rouge (>= 1.7, < 3)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
jekyll-avatar (0.4.2) jekyll-avatar (0.5.0)
jekyll (~> 3.0) jekyll (~> 3.0)
jekyll-coffeescript (1.0.1) jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2) coffee-script (~> 2.2)
jekyll-default-layout (0.1.4) jekyll-default-layout (0.1.4)
jekyll (~> 3.0) jekyll (~> 3.0)
jekyll-feed (0.8.0) jekyll-feed (0.9.2)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-gist (1.4.0) jekyll-gist (1.4.1)
octokit (~> 4.2) octokit (~> 4.2)
jekyll-github-metadata (2.2.0) jekyll-github-metadata (2.9.3)
jekyll (~> 3.1) jekyll (~> 3.1)
octokit (~> 4.0, != 4.4.0) octokit (~> 4.0, != 4.4.0)
jekyll-include-cache (0.1.0) jekyll-include-cache (0.1.0)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-mentions (1.2.0) jekyll-optional-front-matter (0.3.0)
activesupport (~> 4.0)
html-pipeline (~> 2.3)
jekyll (~> 3.0)
jekyll-optional-front-matter (0.1.2)
jekyll (~> 3.0) jekyll (~> 3.0)
jekyll-paginate (1.1.0) jekyll-paginate (1.1.0)
jekyll-readme-index (0.0.3) jekyll-readme-index (0.0.3)
jekyll (~> 3.0) jekyll (~> 3.0)
jekyll-redirect-from (0.11.0) jekyll-redirect-from (0.12.1)
jekyll (>= 2.0)
jekyll-relative-links (0.2.1)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-sass-converter (1.3.0) jekyll-relative-links (0.5.1)
sass (~> 3.2)
jekyll-seo-tag (2.1.0)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-sitemap (0.12.0) jekyll-sass-converter (1.5.0)
sass (~> 3.4)
jekyll-seo-tag (2.3.0)
jekyll (~> 3.3)
jekyll-sitemap (1.1.1)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-swiss (0.4.0) jekyll-swiss (0.4.0)
jekyll-theme-architect (0.0.3) jekyll-theme-architect (0.0.3)
@ -138,66 +76,101 @@ GEM
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-theme-modernist (0.0.3) jekyll-theme-modernist (0.0.3)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-theme-primer (0.1.5) jekyll-theme-primer (0.5.2)
jekyll (~> 3.3) jekyll (~> 3.5)
jekyll-github-metadata (~> 2.9)
jekyll-seo-tag (~> 2.2)
jekyll-theme-slate (0.0.3) jekyll-theme-slate (0.0.3)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-theme-tactile (0.0.3) jekyll-theme-tactile (0.0.3)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-theme-time-machine (0.0.3) jekyll-theme-time-machine (0.0.3)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-titles-from-headings (0.1.3) jekyll-titles-from-headings (0.5.0)
jekyll (~> 3.3) jekyll (~> 3.3)
jekyll-watch (1.5.0) jekyll-watch (1.5.0)
listen (~> 3.0, < 3.1) listen (~> 3.0, < 3.1)
jemoji (0.7.0)
activesupport (~> 4.0)
gemoji (~> 2.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0)
json (1.8.6) json (1.8.6)
kramdown (1.11.1) kramdown (1.15.0)
liquid (3.0.6) liquid (4.0.0)
listen (3.0.6) listen (3.0.8)
rb-fsevent (>= 0.9.3) rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (>= 0.9.7) rb-inotify (~> 0.9, >= 0.9.7)
mercenary (0.3.6) mercenary (0.3.6)
mini_portile2 (2.1.0) method_source (0.9.0)
minima (2.0.0) minima (2.1.1)
minitest (5.10.1) jekyll (~> 3.3)
multipart-post (2.0.0) multipart-post (2.0.0)
net-dns (0.8.0) octokit (4.7.0)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
octokit (4.6.2)
sawyer (~> 0.8.0, >= 0.5.3) sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.14.0) pathutil (0.16.0)
forwardable-extended (~> 2.6) forwardable-extended (~> 2.6)
public_suffix (2.0.4) pry (0.11.2)
rb-fsevent (0.9.8) coderay (~> 1.1.0)
rb-inotify (0.9.7) method_source (~> 0.9.0)
ffi (>= 0.5.0) public_suffix (3.0.0)
rouge (1.11.1) rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (2.2.1)
safe_yaml (1.0.4) safe_yaml (1.0.4)
sass (3.4.23) sass (3.5.3)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.1) sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6) addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0) faraday (~> 0.8, < 1.0)
terminal-table (1.7.3) terminal-table (1.8.0)
unicode-display_width (~> 1.1.1) unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.5) unicode-display_width (1.3.0)
typhoeus (0.8.0)
ethon (>= 0.8.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
unicode-display_width (1.1.2)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
github-pages coffee-script (~> 2.4)
coffee-script-source (~> 1.12)
ethon (~> 0.10)
execjs (~> 2.7)
jekyll (= 3.6.0)
jekyll-avatar (~> 0.4)
jekyll-coffeescript (~> 1.0)
jekyll-default-layout (~> 0.1)
jekyll-feed (~> 0.6)
jekyll-gist
jekyll-github-metadata (~> 2.2)
jekyll-include-cache (~> 0.1) jekyll-include-cache (~> 0.1)
jekyll-optional-front-matter (~> 0.1)
jekyll-paginate (= 1.1.0)
jekyll-readme-index (= 0.0.3)
jekyll-redirect-from (~> 0.11)
jekyll-relative-links (~> 0.2)
jekyll-seo-tag
jekyll-sitemap
jekyll-swiss (~> 0.4)
jekyll-theme-architect (= 0.0.3)
jekyll-theme-cayman (= 0.0.3)
jekyll-theme-dinky (= 0.0.3)
jekyll-theme-hacker (= 0.0.3)
jekyll-theme-leap-day (= 0.0.3)
jekyll-theme-merlot (= 0.0.3)
jekyll-theme-midnight (= 0.0.3)
jekyll-theme-minimal (= 0.0.3)
jekyll-theme-modernist (= 0.0.3)
jekyll-theme-primer (~> 0.1)
jekyll-theme-slate (= 0.0.3)
jekyll-theme-tactile (= 0.0.3)
jekyll-theme-time-machine (= 0.0.3)
jekyll-titles-from-headings (~> 0.1)
json (~> 1.7, >= 1.7.7)
kramdown (~> 1.11)
minima (~> 2.0)
pry
rouge (~> 2.0)
terminal-table (~> 1.4)
unicode-display_width (~> 1.1)
BUNDLED WITH BUNDLED WITH
1.15.2 1.15.4

View File

@ -1,5 +1,6 @@
id: _example id: _example
name: Example K8s Term name: Example K8s Term
full-link: kubernetes.io/docs/link-to-long-dedicated-docs-page
aka: aka:
- Slang K8s Term - Slang K8s Term
- Misnomer - Misnomer
@ -10,8 +11,17 @@ related:
- id-of-commonly-used-with-term - id-of-commonly-used-with-term
tags: tags:
- Some Tag - Some Tag
short-description: | short-description: >
Required. One or two lines that provide a minimum definition. Do not repeat the term. Write about the plural of the term. Prefer fragments. Model after tooltips. End with a period. Required.
long-description: | Markdown allowed (e.g. for cross-linking).
Optional. Longer additional text to appear after (in conjunction with) short description. Provide where the short description is not sufficient as the intro paragraph to a topic. Write complete but concise sentences. One or two lines that provide a minimum definition.
Do not repeat the term.
Prefer fragments.
End with a period.
long-description: >
Optional.
Markdown allowed.
Longer additional text to appear after (in conjunction with) short description.
Provide where the short description is not sufficient as the intro paragraph to a topic.
Write complete but concise sentences.
**See /_includes/templates/glossary/README.md for the official style guide.** **See /_includes/templates/glossary/README.md for the official style guide.**

View File

@ -4,7 +4,7 @@ related:
- application-developer - application-developer
tags: tags:
- user-type - user-type
short-description: | short-description: >
A person responsible for the high-level design of an application. A person responsible for the high-level design of an application.
long-description: > long-description: >
An architect ensures that an app's implementation allows it to interact with its surrounding components in a scalable, maintainable way. An architect ensures that an app's implementation allows it to interact with its surrounding components in a scalable, maintainable way.

View File

@ -4,7 +4,7 @@ related:
- application-architect - application-architect
tags: tags:
- user-type - user-type
short-description: | short-description: >
A person who writes an application that runs in a Kubernetes cluster. A person who writes an application that runs in a Kubernetes cluster.
long-description: > long-description: >
An application developer focuses on one part of an application. An application developer focuses on one part of an application.

View File

@ -2,7 +2,7 @@ id: approver
name: Approver name: Approver
tags: tags:
- community - community
short-description: | short-description: >
A person who can review and approve Kubernetes code contributions. A person who can review and approve Kubernetes code contributions.
long-description: > long-description: >
While code review is focused on code quality and correctness, approval is focused on the holistic acceptance of a contribution. While code review is focused on code quality and correctness, approval is focused on the holistic acceptance of a contribution.

View File

@ -1,8 +1,9 @@
id: cla id: cla
name: CLA (Contributor License Agreement) name: CLA (Contributor License Agreement)
full-link: https://github.com/kubernetes/community/blob/master/CLA.md
tags: tags:
- community - community
short-description: | short-description: >
Terms under which a [contributor](#term-contributor) grants a license to an open source project for their contributions. Terms under which a {% glossary_tooltip text="contributor" term_id="contributor" %} grants a license to an open source project for their contributions.
long-description: | long-description: >
CLAs help resolve legal disputes involving contributed material and intellectual property (IP). CLAs help resolve legal disputes involving contributed material and intellectual property (IP).

View File

@ -5,8 +5,7 @@ related:
- cluster-operator - cluster-operator
tags: tags:
- user-type - user-type
short-description: | short-description: >
A person who designs infrastructure that involves one or more Kubernetes clusters. A person who designs infrastructure that involves one or more Kubernetes clusters.
long-description: >
long-description: |
Cluster architects are concerned with best practices for distributed systems, for example&#58; high availability and security. Cluster architects are concerned with best practices for distributed systems, for example&#58; high availability and security.

View File

@ -7,9 +7,8 @@ related:
- cluster-architect - cluster-architect
tags: tags:
- user-type - user-type
short-description: | short-description: >
A person who configures, controls, and monitors clusters. A person who configures, controls, and monitors clusters.
long-description: | long-description: |
Their primary responsibility is keeping a cluster up and running, which may involve periodic maintenance activities or upgrades.<br> Their primary responsibility is keeping a cluster up and running, which may involve periodic maintenance activities or upgrades.<br>

View File

@ -3,7 +3,7 @@ name: Cluster
tags: tags:
- fundamental - fundamental
- operation - operation
short-description: | short-description: >
A set of machines, called nodes, that run containerized applications managed by Kubernetes. A set of machines, called nodes, that run containerized applications managed by Kubernetes.
long-description: | long-description: >
A cluster has several worker nodes and at least one master node. A cluster has several worker nodes and at least one master node.

View File

@ -5,7 +5,7 @@ aka:
tags: tags:
- community - community
- user-type - user-type
short-description: | short-description: >
A person who develops and contributes code to the Kubernetes open source codebase. A person who develops and contributes code to the Kubernetes open source codebase.
long-description: | long-description: >
They are also an active [community member](#term-community-member) who participates in one or more [Special Interest Groups (SIGs)](#term-sig). They are also an active {% glossary_tooltip text="community member" term_id="member" %} who participates in one or more {% glossary_tooltip text="Special Interest Groups (SIGs)" term_id="sig" %}.

View File

@ -1,9 +1,10 @@
id: container id: container
name: Container name: Container
full-link: /docs/concepts/overview/what-is-kubernetes/#why-containers
tags: tags:
- fundamental - fundamental
- workload - workload
short-description: | short-description: >
A lightweight and portable executable image that contains software and all of its dependencies. A lightweight and portable executable image that contains software and all of its dependencies.
long-description: | long-description: >
Containers decouple applications from underlying host infrastructure to make deployment easier in different cloud or OS environments, and for easier scaling. Containers decouple applications from underlying host infrastructure to make deployment easier in different cloud or OS environments, and for easier scaling.

View File

@ -2,7 +2,7 @@ id: contributor
name: Contributor name: Contributor
tags: tags:
- community - community
short-description: | short-description: >
Someone who donates code, documentation, or their time to help the Kubernetes project or community. Someone who donates code, documentation, or their time to help the Kubernetes project or community.
long-description: | long-description: >
Contributions include pull requests (PRs), issues, feedback, [special interest group (SIG)](#term-sig) participation, or organizing community events. Contributions include pull requests (PRs), issues, feedback, {% glossary_tooltip text="special interest groups (SIG)" term_id="sig" %} participation, or organizing community events.

View File

@ -1,9 +1,10 @@
id: cronjob id: cronjob
name: CronJob name: CronJob
full-link: /docs/concepts/workloads/controllers/cron-jobs/
tags: tags:
- core-object - core-object
- workload - workload
short-description: | short-description: >
Manages a [Job](/docs/concepts/jobs/run-to-completion-finite-workloads/) that runs on a periodic schedule. Manages a [Job](/docs/concepts/workloads/controllers/jobs-run-to-completion/) that runs on a periodic schedule.
long-description: | long-description: >
Similar to a line in a *crontab* file, a [CronJob](/docs/concepts/workloads/controllers/cron-jobs/#writing-a-cron-job-spec) object specifies a schedule using the [Cron](https://en.wikipedia.org/wiki/Cron) format. Similar to a line in a *crontab* file, a Cronjob object specifies a schedule using the [Cron](https://en.wikipedia.org/wiki/Cron) format.

View File

@ -1,10 +1,11 @@
id: deployment id: deployment
name: Deployment name: Deployment
full-link: /docs/concepts/workloads/controllers/deployment/
tags: tags:
- fundamental - fundamental
- core-object - core-object
- workload - workload
short-description: | short-description: >
An API object that manages a replicated application. An API object that manages a replicated application.
long-description: | long-description: >
Each replica is represented by a [Pod](#term-pod), and the Pods are distributed among the nodes of a cluster. Each replica is represented by a {% glossary_tooltip term_id="pod" %}, and the Pods are distributed among the nodes of a cluster.

View File

@ -5,11 +5,7 @@ aka:
tags: tags:
- community - community
- user-type - user-type
short-description: | short-description: >
May refer to&#58; [*Application Developer*](#term-application-developer), [*Code Contributor*](#term-code-contributor), or [*Platform Developer*](#term-platform-developer). May refer to&#58; {% glossary_tooltip text="Application Developer" term_id="application-developer" %}, {% glossary_tooltip text="Code Contributor" term_id="code-contributor" %}, or {% glossary_tooltip text="Platform Developer" term_id="platform-developer" %}.
long-description: | long-description: >
This overloaded term may have different meanings depending on the context. It could mean&#58; This overloaded term may have different meanings depending on the context
* [**Application Developer**](#term-application-developer): A person who writes an application that runs in a Kubernetes cluster.
* [**Code Contributor**](#term-code-contributor): A person who develops and contributes code to the Kubernetes open source codebase.
* [**Platform Developer**](#term-platform-developer): A person who customizes the Kubernetes platform to fit the needs of their project&mdash;for example, by extending the API.

View File

@ -4,7 +4,7 @@ related:
- upstream - upstream
tags: tags:
- community - community
short-description: | short-description: >
May refer to: code in the Kubernetes ecosystem that depends upon the core Kubernetes codebase or a forked repo. May refer to: code in the Kubernetes ecosystem that depends upon the core Kubernetes codebase or a forked repo.
long-description: | long-description: |
* In the **Kubernetes Community**: Conversations often use *downstream* to mean the ecosystem, code, or third-party tools that rely on the core Kubernetes codebase. For example, a new feature in Kubernetes may be adopted by applications *downstream* to improve their functionality. * In the **Kubernetes Community**: Conversations often use *downstream* to mean the ecosystem, code, or third-party tools that rely on the core Kubernetes codebase. For example, a new feature in Kubernetes may be adopted by applications *downstream* to improve their functionality.

View File

@ -1,8 +1,9 @@
id: helm-chart id: helm-chart
name: Helm Chart name: Helm Chart
full-link: https://github.com/kubernetes/helm/blob/master/docs/charts.md
tags: tags:
- tool - tool
short-description: | short-description: >
A package of pre-configured Kubernetes resources that can be managed with the Helm tool. A package of pre-configured Kubernetes resources that can be managed with the Helm tool.
long-description: | long-description: |
Charts provide a reproducible way of creating and sharing Kubernetes applications. Charts provide a reproducible way of creating and sharing Kubernetes applications.

View File

@ -1,10 +1,13 @@
id: ingress id: ingress
name: Ingress name: Ingress
full-link: /docs/concepts/services-networking/ingress/
aka:
- Ingress controller
tags: tags:
- networking - networking
- architecture - architecture
- extension - extension
short-description: | short-description: >
An API object that manages external access to the services in a cluster, typically HTTP. An API object that manages external access to the services in a cluster, typically HTTP.
long-description: | long-description: >
Ingress can provide load balancing, SSL termination and name-based virtual hosting. Ingress can provide load balancing, SSL termination and name-based virtual hosting.

View File

@ -1,10 +1,11 @@
id: istio id: istio
name: Istio name: Istio
full-link: https://istio.io/docs/concepts/what-is-istio/overview.html
tags: tags:
- networking - networking
- architecture - architecture
- extension - extension
short-description: | short-description: >
An open platform (not Kubernetes-specific) that provides a uniform way to integrate microservices, manage traffic flow, enforce policies, and aggregate telemetry data. An open platform (not Kubernetes-specific) that provides a uniform way to integrate microservices, manage traffic flow, enforce policies, and aggregate telemetry data.
long-description: > long-description: >
Adding Istio does not require changing application code. Adding Istio does not require changing application code.

View File

@ -1,9 +1,10 @@
id: kops id: kops
name: Kops name: Kops
full-link: /docs/getting-started-guides/kops/
tags: tags:
- tool - tool
- operation - operation
short-description: | short-description: >
A CLI tool that helps you create, destroy, upgrade and maintain production-grade, highly available, Kubernetes clusters. *NOTE&#58; Officially supports AWS only, with GCE and VMware vSphere in alpha*. A CLI tool that helps you create, destroy, upgrade and maintain production-grade, highly available, Kubernetes clusters. *NOTE&#58; Officially supports AWS only, with GCE and VMware vSphere in alpha*.
long-description: | long-description: |
`kops` provisions your cluster with&#58; `kops` provisions your cluster with&#58;
@ -15,4 +16,4 @@ long-description: |
* High availability (HA) support * High availability (HA) support
* The ability to directly provision, or generate terraform manifests * The ability to directly provision, or generate terraform manifests
You can also build your own cluster using [`kubeadm`](#term-kubeadm) as a building block. `kops` builds on the kubeadm work. You can also build your own cluster using {% glossary_tooltip term_id="kubeadm" %} as a building block. `kops` builds on the kubeadm work.

View File

@ -1,9 +1,10 @@
id: kubeadm id: kubeadm
name: Kubeadm name: Kubeadm
full-link: /docs/admin/kubeadm/
tags: tags:
- tool - tool
- operation - operation
short-description: | short-description: >
A tool for quickly installing Kubernetes and setting up a secure cluster. A tool for quickly installing Kubernetes and setting up a secure cluster.
long-description: | long-description: >
You can use kubeadm to install both the control plane and the worker node components. You can use kubeadm to install both the control plane and the worker node components.

View File

@ -1,9 +1,10 @@
id: kubectl id: kubectl
name: Kubectl name: Kubectl
full-link: /docs/user-guide/kubectl-overview/
tags: tags:
- tool - tool
- fundamental - fundamental
short-description: | short-description: >
A command line tool for communicating with a [Kubernetes API](#term-kubernetes-api) server. A command line tool for communicating with a {% glossary_tooltip text="Kubernetes API" term_id="kubernetes-api" %} server.
long-description: | long-description: >
You can use kubectl to create, inspect, update, and delete Kubernetes objects. You can use kubectl to create, inspect, update, and delete Kubernetes objects.

View File

@ -1,9 +1,10 @@
id: kubernetes-api id: kubernetes-api
name: Kubernetes API name: Kubernetes API
full-link: /docs/concepts/overview/kubernetes-api/
tags: tags:
- fundamental - fundamental
- architecture - architecture
short-description: | short-description: >
The application that serves Kubernetes functionality through a RESTful interface and stores the state of the cluster. The application that serves Kubernetes functionality through a RESTful interface and stores the state of the cluster.
long-description: > long-description: >
Kubernetes resources and "records of intent" are all stored as API objects, and modified via RESTful calls to the API. Kubernetes resources and "records of intent" are all stored as API objects, and modified via RESTful calls to the API.

View File

@ -2,7 +2,7 @@ id: maintainer
name: Maintainer name: Maintainer
tags: tags:
- community - community
short-description: | short-description: >
A highly experienced [contributor](#term-contributor), active in multiple areas of Kubernetes, who has cross-area ownership and write access to a project's GitHub repository. A highly experienced {% glossary_tooltip text="contributor" term_id="contributor" %}, active in multiple areas of Kubernetes, who has cross-area ownership and write access to a project's GitHub repository.
long-description: | long-description: >
Maintainers work holistically across the project to maintain its health and success and have made substantial contributions, both through code development and broader organizational efforts. Maintainers work holistically across the project to maintain its health and success and have made substantial contributions, both through code development and broader organizational efforts.

View File

@ -2,9 +2,9 @@ id: member
name: Member name: Member
tags: tags:
- community - community
short-description: | short-description: >
A continuously active [contributor](#term-contributor) in the K8s community. A continuously active {% glossary_tooltip text="contributor" term_id="contributor" %} in the K8s community.
long-description: > long-description: >
Members can have issues and PRs assigned to them and participate in [special interest groups (SIGs)](#term-sig) through GitHub teams. Members can have issues and PRs assigned to them and participate in {% glossary_tooltip text="special interest groups (SIGs)" term_id="sig" %} through GitHub teams.
Pre-submit tests are automatically run for members' PRs. Pre-submit tests are automatically run for members' PRs.
A member is expected to remain an active contributor to the community. A member is expected to remain an active contributor to the community.

View File

@ -1,9 +1,10 @@
id: minikube id: minikube
name: Minikube name: Minikube
full-link: /docs/getting-started-guides/minikube/
tags: tags:
- fundamental - fundamental
- tool - tool
short-description: | short-description: >
A tool for running Kubernetes locally. A tool for running Kubernetes locally.
long-description: | long-description: >
Minikube runs a single-node cluster inside a VM on your computer. Minikube runs a single-node cluster inside a VM on your computer.

View File

@ -4,7 +4,7 @@ aka:
- Kubernetes Developer - Kubernetes Developer
tags: tags:
- user-type - user-type
short-description: | short-description: >
A person who customizes the Kubernetes platform to fit the needs of their project. A person who customizes the Kubernetes platform to fit the needs of their project.
long-description: > long-description: >
A platform developer may, for example, use [Custom Resources](/docs/concepts/api-extension/custom-resources/) or [Extend the Kubernetes API with the aggregation layer](/docs/concepts/api-extension/apiserver-aggregation/) to add functionality to their instance of Kubernetes, specifically for their application. A platform developer may, for example, use [Custom Resources](/docs/concepts/api-extension/custom-resources/) or [Extend the Kubernetes API with the aggregation layer](/docs/concepts/api-extension/apiserver-aggregation/) to add functionality to their instance of Kubernetes, specifically for their application.

View File

@ -1,5 +1,6 @@
id: pod id: pod
name: Pod name: Pod
full-link: /docs/concepts/workloads/pods/pod-overview/
related: related:
- container - container
- sidecar - sidecar
@ -8,9 +9,9 @@ related:
tags: tags:
- core-object - core-object
- fundamental - fundamental
short-description: | short-description: >
The smallest and simplest Kubernetes object. A Pod represents a set of running [containers](#term-container) on your cluster. The smallest and simplest Kubernetes object. A Pod represents a set of running {% glossary_tooltip text="containers" term_id="container" %} on your cluster.
long-description: > long-description: >
A Pod is typically set up to run a single primary container. A Pod is typically set up to run a single primary container.
It can also run optional sidecar containers that add supplementary features like logging. It can also run optional sidecar containers that add supplementary features like logging.
Pods are commonly managed by a [Deployment](#term-deployment). Pods are commonly managed by a {% glossary_tooltip term_id="deployment" %}.

View File

@ -1,9 +1,10 @@
id: rbac id: rbac
name: RBAC (Role-Based Access Control) name: RBAC (Role-Based Access Control)
full-link: /docs/admin/authorization/rbac/
tags: tags:
- security - security
- fundamental - fundamental
short-description: | short-description: >
Manages authorization decisions, allowing admins to dynamically configure access policies through the [Kubernetes API](#term-kubernetes-api). Manages authorization decisions, allowing admins to dynamically configure access policies through the {% glossary_tooltip text="Kubernetes API" term_id="kubernetes-api" %}.
long-description: | long-description: >
RBAC utilizes *roles*, which contain permission rules, and *role bindings*, which grant the permissions defined in a role to a set of users. RBAC utilizes *roles*, which contain permission rules, and *role bindings*, which grant the permissions defined in a role to a set of users.

View File

@ -2,7 +2,7 @@ id: reviewer
name: Reviewer name: Reviewer
tags: tags:
- community - community
short-description: | short-description: >
A person who reviews code for quality and correctness on some part of the project. A person who reviews code for quality and correctness on some part of the project.
long-description: | long-description: >
Reviewers are knowledgeable about both the codebase and software engineering principles. Reviewer status is scoped to a part of the codebase. Reviewers are knowledgeable about both the codebase and software engineering principles. Reviewer status is scoped to a part of the codebase.

View File

@ -1,9 +1,10 @@
id: service id: service
name: Service name: Service
full-link: /docs/concepts/services-networking/service/
tags: tags:
- fundamental - fundamental
- core-object - core-object
short-description: | short-description: >
An API object that describes how to access applications, such as a set of [Pods](#term-pod), and can describe ports and load-balancers. An API object that describes how to access applications, such as a set of {% glossary_tooltip text="Pods" term_id="pod" %}, and can describe ports and load-balancers.
long-description: | long-description: >
The access point can be internal or external to the cluster. The access point can be internal or external to the cluster.

View File

@ -1,10 +1,11 @@
id: sig id: sig
name: SIG (special interest group) name: SIG (special interest group)
full-link: https://github.com/kubernetes/community/blob/master/sig-list.md#master-sig-list
tags: tags:
- community - community
short-description: | short-description: >
[Members](#term-member) who collectively manage an ongoing piece or aspect of the larger Kubernetes open source project. {% glossary_tooltip text="Community members" term_id="member" %} who collectively manage an ongoing piece or aspect of the larger Kubernetes open source project.
long-description: > long-description: |
Members within a SIG have a shared interest in advancing a specific area, such as architecture, API machinery, or documentation. Members within a SIG have a shared interest in advancing a specific area, such as architecture, API machinery, or documentation.
SIGs must follow the [SIG Governance](https://github.com/kubernetes/community/blob/master/sig-governance.md) guidelines but can have their own contribution policy and channels of communication. SIGs must follow the [SIG Governance](https://github.com/kubernetes/community/blob/master/sig-governance.md) guidelines but can have their own contribution policy and channels of communication.

View File

@ -1,5 +1,6 @@
id: statefulset id: statefulset
name: StatefulSet name: StatefulSet
full-link: /docs/concepts/workloads/controllers/statefulset/
aka: aka:
- PetSet - PetSet
related: related:
@ -9,10 +10,9 @@ tags:
- core-object - core-object
- workload - workload
- storage - storage
short-description: | short-description: >
Manages the deployment and scaling of a set of [Pods](/docs/concepts/workloads/pods/pod), *and provides guarantees about the ordering and uniqueness* of these Pods. Manages the deployment and scaling of a set of {% glossary_tooltip text="Pods" term_id="pod" %}, *and provides guarantees about the ordering and uniqueness* of these Pods.
long-description: | long-description: |
Like a [Deployment](/docs/concepts/workloads/controllers/deployment), a StatefulSet manages Pods that are based on an identical container spec. Unlike a Deployment, a StatefulSet maintains a sticky identity for each of their Pods. These pods are created from the same spec, but are not interchangeable&#58; each has a persistent identifier that it maintains across any rescheduling. Like a {% glossary_tooltip term_id="deployment" %}, a StatefulSet manages Pods that are based on an identical container spec. Unlike a Deployment, a StatefulSet maintains a sticky identity for each of their Pods. These pods are created from the same spec, but are not interchangeable&#58; each has a persistent identifier that it maintains across any rescheduling.
A StatefulSet operates under the same pattern as any other Controller. You define your desired state in a StatefulSet *object*, and the StatefulSet *controller* makes any necessary updates to get there from the current state. A StatefulSet operates under the same pattern as any other Controller. You define your desired state in a StatefulSet *object*, and the StatefulSet *controller* makes any necessary updates to get there from the current state.

View File

@ -4,7 +4,7 @@ related:
- downstream - downstream
tags: tags:
- community - community
short-description: | short-description: >
May refer to: core Kubernetes or the source repo from which a repo was forked. May refer to: core Kubernetes or the source repo from which a repo was forked.
long-description: | long-description: |
* In the **Kubernetes Community**: Conversations often use *upstream* to mean the core Kubernetes codebase, which the general ecosystem, other code, or third-party tools relies upon. For example, [community members](#term-member) may suggest that a feature is moved upstream so that it is in the core codebase instead of in a plugin or third-party tool. * In the **Kubernetes Community**: Conversations often use *upstream* to mean the core Kubernetes codebase, which the general ecosystem, other code, or third-party tools relies upon. For example, [community members](#term-member) may suggest that a feature is moved upstream so that it is in the core codebase instead of in a plugin or third-party tool.

View File

@ -1,9 +1,10 @@
id: wg id: wg
name: WG (working group) name: WG (working group)
full-link: https://github.com/kubernetes/community/blob/master/sig-list.md#master-working-group-list
tags: tags:
- community - community
short-description: | short-description: >
Facilitates the discussion and/or implementation of a short-lived, narrow, or decoupled project for a committee, [SIG](#term-sig), or cross-SIG effort. Facilitates the discussion and/or implementation of a short-lived, narrow, or decoupled project for a committee, {% glossary_tooltip text="SIG" term_id="sig" %}, or cross-SIG effort.
long-description: | long-description: |
Working groups are a way of organizing people to accomplish a discrete task, and are relatively easy to create and deprecate when inactive. Working groups are a way of organizing people to accomplish a discrete task, and are relatively easy to create and deprecate when inactive.

View File

@ -8,6 +8,7 @@
<link rel="stylesheet" type="text/css" href="/css/jquery-ui.min.css"> <link rel="stylesheet" type="text/css" href="/css/jquery-ui.min.css">
<link rel="stylesheet" type="text/css" href="/css/sweetalert.css"> <link rel="stylesheet" type="text/css" href="/css/sweetalert.css">
<link rel="stylesheet" type="text/css" href="/css/callouts.css"> <link rel="stylesheet" type="text/css" href="/css/callouts.css">
<link rel="stylesheet" type="text/css" href="/css/custom-jekyll/tags.css">
{% if page.deprecated %}<link rel="stylesheet" type="text/css" href="/css/deprecation-warning.css">{% endif %} {% if page.deprecated %}<link rel="stylesheet" type="text/css" href="/css/deprecation-warning.css">{% endif %}
{% if page.class == "gridPage" %}<link rel="stylesheet" type="text/css" href="/css/gridpage.css">{% endif %} {% if page.class == "gridPage" %}<link rel="stylesheet" type="text/css" href="/css/gridpage.css">{% endif %}
{% if page.css %}<link rel="stylesheet" type="text/css" href="{{ page.css }}"><!-- custom css added -->{% else %}<!-- no custom css detected -->{% endif %} {% if page.css %}<link rel="stylesheet" type="text/css" href="{{ page.css }}"><!-- custom css added -->{% else %}<!-- no custom css detected -->{% endif %}
@ -23,5 +24,6 @@
<script src="/js/script.js"></script> <script src="/js/script.js"></script>
<script src="/js/sweetalert.min.js"></script> <script src="/js/sweetalert.min.js"></script>
<script src="/js/bootstrap.min.js"></script> <script src="/js/bootstrap.min.js"></script>
<script src="/js/custom-jekyll/tags.js"></script>
{% seo %} {% seo %}
</head> </head>

View File

@ -1,10 +1,10 @@
{% assign term_data = site.data.glossary.[include.term] %} {% assign term_data = site.data.glossary.[include.term_id] %}
{% if include.length == "all" or include.length == "short" %} {% if include.length == "all" or include.length == "short" %}
{% if term_data.short-description %} {% if term_data.short-description %}
{{ term_data.short-description | markdownify }} {{ term_data.short-description | liquify | markdownify }}
{% else %} {% else %}
@ -18,7 +18,7 @@
{% if term_data.long-description %} {% if term_data.long-description %}
{{ term_data.long-description | markdownify }} {{ term_data.long-description | liquify | markdownify }}
{% else %} {% else %}

75
_plugins/README.md Normal file
View File

@ -0,0 +1,75 @@
# Custom Jekyll Plugins
This directory contains `*.rb` files that extend the original Jekyll classes and provide custom formatting for the docs site:
### `glossary_tags.rb`
A full list of glossary terms is available on the [Standardized Glossary](https://kubernetes.io/docs/reference/glossary/?fundamental=true) page. For further information about term schemas, see the [README](../_includes/templates/glossary/README.md) and the provided [`_example.yml`](../_data/glossary/_example.yml).
*NOTE: The "tags" referenced here are Liquid tags like `{% include %}`, **not** the glossary canonical tags that are used to categorize terms.*
#### (1) `glossary_definition` tag
This renders the definition of the glossary term inside a `<div>`, preserving Markdown formatting where possible. It uses the [`snippet.md` template](../_includes/templates/glossary/snippet.md).
**Usage:**
```
{% glossary_definition term_id="helm-chart" length="all" %}
```
**Parameters:**
| Name | Default | Description |
| --- | --- | --- |
| `term_id` | N/A (Required) | The `id` of the glossary term whose definition will be used. (This `id` is the same as the filename of the term, i.e. `_data/glossary/<ID>.yml`.) |
| `length` | "short" | Specifies which term definition should be used ("short" for the `short-definition`, "long" for `long-description`, "all" when both should be included). |
#### (2) `glossary_tooltip` tag
This renders the glossary term with a tooltip--when the term is moused over by the user, its definition is displayed above.
**Usage:**
```
{% glossary_tooltip text="Helm Charts" term_id="helm-chart" %}
```
This renders the following:
![glossary-tooltip](../images/metadocs/jekyll-tags-glossary-tooltip.png)
**Parameters:**
| Name | Default | Description |
| --- | --- | --- |
| `text` | the `name` of the glossary term | The text that the user will hover over to display the glossary definition. **You should include this if using the tooltip inside of a glossary term's YAML short-definition.** |
| `term_id` | N/A (Required) | The `id` of the associated glossary term. (This `id` is the same as the filename of the term, i.e. `_data/glossary/<ID>.yml`.) |
#### (3) `glossary_injector` tag
This takes the definition of the term specified by the `term_id` and uses it to populate the contents of another HTML element specified by `placeholder_id`.
**Usage:**
```
{% glossary_injector term_id="kubectl" placeholder_id="def-container" length="short" %}
```
This renders the following:
![glossary-injector](../images/metadocs/jekyll-tags-glossary-injector.gif)
*NOTE: Neither the placeholder nor the term's styling/CSS is determined by this Jekyll tag. You will need to specify this yourself in your Markdown/HTML files, i.e. by assigning a custom class.*
**Parameters:**
| Name | Default | Description |
| --- | --- | --- |
| `text` | the `name` of the glossary term | The text that the user will hover over to display the glossary definition. |
| `term_id` | N/A (Required) | The `id` of the glossary term whose definition will be used. (This `id` is the same as the filename of the term, i.e. `_data/glossary/<ID>.yml`.) |
| `placeholder_id` | N/A (Required) | The `id` of the HTML element whose contents will be populated with the definition of `term_id` |
| `length` | "short" | Specifies which term definition should be used ("short" for the `short-definition`, "long" for `long-description`, "all" when both should be included). |

122
_plugins/glossary_tags.rb Normal file
View File

@ -0,0 +1,122 @@
# See /_plugins/README.md for full documentation of these custom Jekyll tags
module Jekyll
module GlossaryTags
# Base class for tags (not to be instantiated)
class Base < Liquid::Tag
VALID_PARAM_NAMES = []
LENGTH_SHORT = "short"
LENGTH_LONG = "long"
SNIPPET_TEMPLATE = "templates/glossary/snippet.md"
def initialize(tag_name, markup, options)
super
@args = {}
@markup.scan(/([\S]+=['"][^=]+["'])+/).each do |arg|
key, val = arg.first.split("=")
key = key.to_sym
next unless val
if self.class::VALID_PARAM_NAMES.include?(key)
@args[key] = val.gsub("\"", "")
end
end
end
# "abstract" method
def render(context)
raise NotImplementedError
end
protected
def glossary_term_info(context)
global_glossary_hash = context.registers[:site].data["glossary"]
unless global_glossary_hash.keys.to_set.include?(@args[:term_id])
raise StandardError,
"#{@args[:term_id]} is not a valid glossary term id. Please " \
"see ./_data/glossary/* for the complete list."
end
global_glossary_hash[@args[:term_id]]
end
def include_snippet(context)
@args[:length] ||= LENGTH_SHORT
clean_markup = @args.keys.map { |k| "#{k}=\"#{@args[k]}\"" }.join(" ")
Jekyll::Tags::IncludeTag.parse(
"include",
"#{SNIPPET_TEMPLATE} #{clean_markup}",
nil,
@parse_context
).render(context)
end
end
# Tag for displaying a glossary term's definition inline
class Definition < Base
VALID_PARAM_NAMES = [
:term_id,
:length
].freeze
def render(context)
include_snippet(context)
end
end
# Tag to display a tooltip for a specific glossary term
class Tooltip < Base
VALID_PARAM_NAMES = [
:text,
:term_id
].freeze
GLOSSARY_HOME = "/docs/reference/glossary/?all=true"
NESTED_TOOLTIPS = /{% (.*?text="(.*?)".*?) %}/
NESTED_MARKDOWN_LINKS = /(\[(.*?)\]\(.*?\))/
def render(context)
term_info = glossary_term_info(context)
external_link =
term_info["full-link"] ||
"#{GLOSSARY_HOME}#term-#{term_info["id"]}"
tooltip = term_info["short-description"].
gsub(NESTED_TOOLTIPS, '\2').
gsub(NESTED_MARKDOWN_LINKS, '\2').
strip
"<a class='glossary-tooltip' href='#{external_link}'>" \
"#{@args[:text] || term_info["name"]}" \
"<span class='tooltip-text'>" \
"#{tooltip}" \
"</span>" \
"</a>"
end
end
# Tag to inject a glossary term definition into another HTML element
class Injector < Base
VALID_PARAM_NAMES = [
:text,
:term_id,
:placeholder_id,
:length
].freeze
RENDERED_DESCRIPTION_BLOCK = /.*<p>(.+)<\/p>.*/
def render(context)
term_info = glossary_term_info(context)
description = RENDERED_DESCRIPTION_BLOCK.match(include_snippet(context))[1]
"<span class='glossary-injector' data-placeholder-id='#{@args[:placeholder_id]}'>" \
"#{@args[:text] || term_info["name"]}" \
"<span class='injector-def hide'>" \
"#{description}" \
"</span>" \
"</span>"
end
end
end
end
Liquid::Template.register_tag('glossary_definition', Jekyll::GlossaryTags::Definition)
Liquid::Template.register_tag('glossary_tooltip', Jekyll::GlossaryTags::Tooltip)
Liquid::Template.register_tag('glossary_injector', Jekyll::GlossaryTags::Injector)

View File

@ -0,0 +1,10 @@
# Filter to force liquid parsing
module Jekyll
module LiquifyFilter
def liquify(input)
Liquid::Template.parse(input).render(@context)
end
end
end
Liquid::Template.register_filter(Jekyll::LiquifyFilter)

View File

@ -0,0 +1,56 @@
.no-underline {
text-decoration: none !important;
}
.hide {
display: none !important;
}
/* Tooltip container */
.glossary-tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
color: black;
text-decoration: none !important;
}
/* Tooltip text */
.glossary-tooltip .tooltip-text {
visibility: hidden;
width: 300px;
background-color: #555;
color: #fff;
text-align: center;
padding: 5px 8px;
border-radius: 6px;
/* Position the tooltip text */
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -150px;
/* Fade in tooltip */
opacity: 0;
transition: opacity 0.3s;
}
/* Tooltip arrow */
.glossary-tooltip .tooltip-text::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
/* Show the tooltip text when you mouse over the tooltip container */
.glossary-tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}

View File

@ -2,14 +2,6 @@
display: inline; display: inline;
} }
.no-underline {
text-decoration: none !important;
}
.hide {
display: none !important;
}
.permalink { .permalink {
background-image: url(../images/link.png); background-image: url(../images/link.png);
background-repeat: no-repeat; background-repeat: no-repeat;

View File

@ -5,7 +5,7 @@ title: Ingress
--- ---
{% capture overview %} {% capture overview %}
{% include templates/glossary/snippet.md term="ingress" length="all" %} {% glossary_definition term_id="ingress" length="all" %}
{% endcapture %} {% endcapture %}
{% capture body %} {% capture body %}

View File

@ -10,10 +10,10 @@ title: StatefulSets
--- ---
{% capture overview %} {% capture overview %}
**StatefulSet is the workload API object used to manage stateful applications. **StatefulSet is the workload API object used to manage stateful applications.
StatefulSets are beta in 1.8.** StatefulSets are beta in 1.8.**
{% include templates/glossary/snippet.md term="statefulset" length="all" %} {% glossary_definition term_id="statefulset" length="all" %}
{% endcapture %} {% endcapture %}
{% capture body %} {% capture body %}

View File

@ -56,9 +56,10 @@ default_active_tag: fundamental
Also known as: <i>{{ term.aka | join: ", " }}</i> Also known as: <i>{{ term.aka | join: ", " }}</i>
<br> <br>
{% endif %} {% endif %}
<span class="preview-text">{{ term.short-description | markdownify }} <a href="javascript:void(0)" class="click-controller no-underline" data-target="{{ term.id }}">[+]</a></span>
<span class="preview-text">{{ term.short-description | liquify | markdownify }} <a href="javascript:void(0)" class="click-controller no-underline" data-target="{{ term.id }}">[+]</a></span>
<div id="{{ term.id }}" class="hide"> <div id="{{ term.id }}" class="hide">
{{ term.long-description | markdownify }} {{ term.long-description | liquify | markdownify }}
</div> </div>
</div> </div>
</li> </li>

View File

@ -2,8 +2,11 @@
layout: docwithnav layout: docwithnav
title: Search Results title: Search Results
--- ---
<script> <script type="text/javascript">
document.write('<gcse:searchresults-only linktarget="_parent"></gcse:searchresults-only>');
</script>
<script>
(function() { (function() {
var cx = '013288817511911618469:elfqqbqldzg'; var cx = '013288817511911618469:elfqqbqldzg';
var gcse = document.createElement('script'); var gcse = document.createElement('script');
@ -17,4 +20,3 @@ title: Search Results
document.querySelector('html').classList.add('search'); document.querySelector('html').classList.add('search');
})(); })();
</script> </script>
<gcse:searchresults-only linktarget="_parent"></gcse:searchresults-only>

View File

@ -124,12 +124,14 @@ Pod's 200 MiB limit.
} }
``` ```
Delete your Pod: Delete your Pod:
```shell ```shell
kubectl delete pod memory-demo --namespace=mem-example kubectl delete pod memory-demo --namespace=mem-example
``` ```
## Exceed a Container's memory limit ## Exceed a Container's memory limit
A Container can exceed its memory request if the Node has memory available. But a Container A Container can exceed its memory request if the Node has memory available. But a Container
@ -370,4 +372,3 @@ kubectl delete namespace mem-example
{% include templates/task.md %} {% include templates/task.md %}

View File

@ -5,7 +5,7 @@ title: Define a Command and Arguments for a Container
{% capture overview %} {% capture overview %}
This page shows how to define commands and arguments when you run a container This page shows how to define commands and arguments when you run a container
in a Kubernetes Pod. in a {% glossary_tooltip term_id="pod" %}.
{% endcapture %} {% endcapture %}

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

15
js/custom-jekyll/tags.js Normal file
View File

@ -0,0 +1,15 @@
$( document ).ready(function() {
// Shows permalink when term name is hovered over
$(".glossary-injector").each(function() {
var placeholder = $("#" + $(this).data("placeholder-id"));
var originalContent = placeholder.html();
var glossaryDef = $($(this).find(".injector-def")[0]).html();
$(this).mouseenter(function() {
placeholder.html(glossaryDef);
}).mouseleave(function(){
placeholder.html(originalContent);
});
});
});