kubectl for Docker test
|
@ -12,7 +12,7 @@ toc:
|
|||
- title: kubectl Overview
|
||||
path: http://kubernetes.io/v1.1/docs/user-guide/kubectl-overview.html
|
||||
- title: kubectl for Docker Users
|
||||
path: http://kubernetes.io/v1.1/docs/user-guide/docker-cli-to-kubectl.html
|
||||
path: /v1.1/reference/docker-cli-to-kubectl
|
||||
- title: kubectl Reference (pretend the child nodes are here)
|
||||
path: http://kubernetes.io/v1.1/docs/user-guide/kubectl/kubectl.html
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
# CreaturesInUnitards
|
||||
Kubernetes Documentation
|
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 6.5 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 2.0 KiB |
|
@ -0,0 +1,119 @@
|
|||
<!Doctype html>
|
||||
<html id="docs">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="/css/styles.css"/>
|
||||
<script src="/js/script.js"></script>
|
||||
<title>Kubernetes - Index test</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cellophane" onclick="kub.toggleMenu()"></div>
|
||||
<header>
|
||||
<a href="/" class="logo"></a>
|
||||
<div class="nav-buttons" data-auto-burger="primary">
|
||||
<a href="/docs" class="button" id="viewDocs">View Documentation</a>
|
||||
<a href="/get-started" class="button" id="tryKubernetes">Try Kubernetes</a>
|
||||
<button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>
|
||||
</div>
|
||||
|
||||
<nav id="mainNav">
|
||||
<main data-auto-burger="primary">
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Get Started</a></h3>
|
||||
<p>Built for a multi-cloud world, public, private or hybrid. Seamlessly roll out new features.</p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Documentation</a></h3>
|
||||
<p>Pellentesque in ipsum id orci porta dapibus. Nulla porttitor accumsan tincidunt. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Community</a></h3>
|
||||
<p>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Blog</a></h3>
|
||||
<p>Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Quisque velit nisi, pretium ut lacinia in. </p>
|
||||
</div>
|
||||
</main>
|
||||
<main data-auto-burger="primary">
|
||||
<div class="left">
|
||||
<h5 class="github-invite">Interested in hacking on the core Kubernetes code base?</h5>
|
||||
<a href="" class="button">View On Github</a>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<h5 class="github-invite">Explore the community</h5>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="Twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear" style="clear: both"></div>
|
||||
</main>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- HERO -->
|
||||
<section id="hero" class="light-text">
|
||||
<h1>Index test</h1>
|
||||
<h5>Cool content goes here</h5>
|
||||
<div id="vendorStrip" class="light-text">
|
||||
<ul>
|
||||
<li><a href="//guides">GUIDES</a></li>
|
||||
<li><a href="//reference">REFERENCE</a></li>
|
||||
<li><a href="//samples">SAMPLES</a></li>
|
||||
<li><a href="//support">SUPPORT</a></li>
|
||||
</ul>
|
||||
<input type="text" id="search" placeholder="Search the docs">
|
||||
<div class="dropdown">
|
||||
<div class="readout"></div>
|
||||
<a href="/v1.1">Version 1.1</a>
|
||||
<a href="/v1.0">Version 1.0</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="encyclopedia">
|
||||
<div id="docsToc">
|
||||
<div class="pi-accordion">
|
||||
|
||||
|
||||
|
||||
</div> <!-- /pi-accordion -->
|
||||
</div> <!-- /docsToc -->
|
||||
<div id="docsContent">
|
||||
Yep.
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<footer>
|
||||
<main class="light-text">
|
||||
<nav>
|
||||
<a href="/getting-started.html">Getting Started</a>
|
||||
<a href="/docs.html">Documentation</a>
|
||||
<a href="http://blog.kubernetes.io/">Blog</a>
|
||||
<a href="/foobang.html">Community</a>
|
||||
</nav>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
<label for="wishField">I wish this page <input type="text" id="wishField" name="wishField" placeholder="made better textfield suggestions"></label>
|
||||
</div>
|
||||
<div class="center">© 2016 Kubernetes</div>
|
||||
</main>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,208 @@
|
|||
<!Doctype html>
|
||||
<html id="docs">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="/css/styles.css"/>
|
||||
<script src="/js/script.js"></script>
|
||||
<title>Kubernetes - Doc test</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cellophane" onclick="kub.toggleMenu()"></div>
|
||||
<header>
|
||||
<a href="/" class="logo"></a>
|
||||
<div class="nav-buttons" data-auto-burger="primary">
|
||||
<a href="/docs" class="button" id="viewDocs">View Documentation</a>
|
||||
<a href="/get-started" class="button" id="tryKubernetes">Try Kubernetes</a>
|
||||
<button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>
|
||||
</div>
|
||||
|
||||
<nav id="mainNav">
|
||||
<main data-auto-burger="primary">
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Get Started</a></h3>
|
||||
<p>Built for a multi-cloud world, public, private or hybrid. Seamlessly roll out new features.</p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Documentation</a></h3>
|
||||
<p>Pellentesque in ipsum id orci porta dapibus. Nulla porttitor accumsan tincidunt. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Community</a></h3>
|
||||
<p>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Blog</a></h3>
|
||||
<p>Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Quisque velit nisi, pretium ut lacinia in. </p>
|
||||
</div>
|
||||
</main>
|
||||
<main data-auto-burger="primary">
|
||||
<div class="left">
|
||||
<h5 class="github-invite">Interested in hacking on the core Kubernetes code base?</h5>
|
||||
<a href="" class="button">View On Github</a>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<h5 class="github-invite">Explore the community</h5>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="Twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear" style="clear: both"></div>
|
||||
</main>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- HERO -->
|
||||
<section id="hero" class="light-text">
|
||||
<h1>Doc test</h1>
|
||||
<h5>Testing the doducmentation with cascading layouts</h5>
|
||||
<div id="vendorStrip" class="light-text">
|
||||
<ul>
|
||||
<li><a href="/v1.1/guides">GUIDES</a></li>
|
||||
<li><a href="/v1.1/reference">REFERENCE</a></li>
|
||||
<li><a href="/v1.1/samples">SAMPLES</a></li>
|
||||
<li><a href="/v1.1/support">SUPPORT</a></li>
|
||||
</ul>
|
||||
<input type="text" id="search" placeholder="Search the docs">
|
||||
<div class="dropdown">
|
||||
<div class="readout"></div>
|
||||
<a href="/v1.1">Version 1.1</a>
|
||||
<a href="/v1.0">Version 1.0</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="encyclopedia">
|
||||
<div id="docsToc">
|
||||
<div class="pi-accordion">
|
||||
|
||||
|
||||
<a class="item" data-title="Overview" href="/v1.1/guides/" ></a>
|
||||
<div class="item" data-title="Quickstarts">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Setting Up Your Local Environment" href="/v1.1/docs/setup" ></a>
|
||||
<a class="item" data-title="5-minute Quickstart" href="/v1.1/docs/hellonode" ></a>
|
||||
<a class="item" data-title="Kubernetes 101" href="http://kubernetes.io/v1.1/docs/user-guide/walkthrough/README.html" ></a>
|
||||
<a class="item" data-title="Kubernetes 201" href="http://kubernetes.io/v1.1/docs/user-guide/walkthrough/k8s201.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Running Kubernetes">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Running Kubernetes on Your Local Machine" href="http://kubernetes.io/v1.1/gs-localmachine.html" ></a>
|
||||
<a class="item" data-title="Running Kubernetes on Google Container Engine" href="https://cloud.google.com/container-engine" ></a>
|
||||
<a class="item" data-title="Running Kubernetes on Turn-key Cloud Solutions" href="http://kubernetes.io/v1.1/gs-turnkey.html" ></a>
|
||||
<a class="item" data-title="Running Kubernetes on Custom Solutions" href="http://kubernetes.io/v1.1/gs-custom.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Common Tasks">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Using Clusters" href="http://kubernetes.io/v1.1/docs/admin/introduction.html" ></a>
|
||||
<a class="item" data-title="Using Multiple Clusters" href="http://kubernetes.io/v1.1/docs/admin/multi-cluster.html" ></a>
|
||||
<a class="item" data-title="Using Large Clusters" href="http://kubernetes.io/v1.1/docs/admin/cluster-large.html" ></a>
|
||||
<a class="item" data-title="Building High-Availability Clusters" href="http://kubernetes.io/v1.1/docs/admin/high-availability.html" ></a>
|
||||
<a class="item" data-title="Accessing Clusters" href="http://kubernetes.io/v1.1/docs/user-guide/accessing-the-cluster.html" ></a>
|
||||
<a class="item" data-title="Sharing a Cluster" href="http://kubernetes.io/v1.1/docs/admin/namespaces/README.html" ></a>
|
||||
<a class="item" data-title="Changing Cluster Size" href="https://github.com/kubernetes/kubernetes/wiki/User-FAQ#how-do-i-change-the-size-of-my-cluster" ></a>
|
||||
<a class="item" data-title="Creating a Custom Cluster from Scratch" href="http://kubernetes.io/v1.1/docs/getting-started-guides/scratch.html" ></a>
|
||||
<a class="item" data-title="Authenticating Across Clusters with kubeconfig" href="http://kubernetes.io/v1.1/docs/user-guide/kubeconfig-file.html" ></a>
|
||||
<a class="item" data-title="Using Nodes" href="http://kubernetes.io/v1.1/docs/admin/node.html" ></a>
|
||||
<a class="item" data-title="Assigning Pods to Nodes" href="http://kubernetes.io/v1.1/docs/user-guide/node-selection/README.html" ></a>
|
||||
<a class="item" data-title="Using Configuration Files" href="http://kubernetes.io/v1.1/docs/user-guide/simple-yaml.html" ></a>
|
||||
<a class="item" data-title="Configuring Containers" href="http://kubernetes.io/v1.1/docs/user-guide/configuring-containers.html" ></a>
|
||||
<a class="item" data-title="Configuring Kubernetes with Salt" href="http://kubernetes.io/v1.1/docs/admin/salt.html" ></a>
|
||||
<a class="item" data-title="Using Environment Variables" href="http://kubernetes.io/v1.1/docs/user-guide/environment-guide/README.html" ></a>
|
||||
<a class="item" data-title="Configuring Garbage Collection" href="http://kubernetes.io/v1.1/docs/admin/garbage-collection.html" ></a>
|
||||
<a class="item" data-title="Managing Compute Resources" href="http://kubernetes.io/v1.1/docs/user-guide/compute-resources.html" ></a>
|
||||
<a class="item" data-title="Applying Resource Quotas and Limits" href="http://kubernetes.io/v1.1/docs/admin/resourcequota/README.html" ></a>
|
||||
<a class="item" data-title="Setting Pod CPU and Memory Limits" href="http://kubernetes.io/v1.1/docs/admin/limitrange/README.html" ></a>
|
||||
<a class="item" data-title="Managing Deployments" href="http://kubernetes.io/v1.1/docs/user-guide/managing-deployments.html" ></a>
|
||||
<a class="item" data-title="Deploying Applications" href="http://kubernetes.io/v1.1/docs/user-guide/deploying-applications.html" ></a>
|
||||
<a class="item" data-title="Launching, Exposing, and Killing Applications" href="http://kubernetes.io/v1.1/docs/user-guide/quick-start.html" ></a>
|
||||
<a class="item" data-title="Connecting Applications" href="http://kubernetes.io/v1.1/docs/user-guide/connecting-applications.html" ></a>
|
||||
<a class="item" data-title="Networking in Kubernetes" href="http://kubernetes.io/v1.1/docs/admin/networking.html" ></a>
|
||||
<a class="item" data-title="Creating Servers with External IPs" href="http://kubernetes.io/v1.1/examples/simple-nginx.html" ></a>
|
||||
<a class="item" data-title="Setting Up and Configuring DNS" href="http://kubernetes.io/v1.1/examples/cluster-dns/README.html" ></a>
|
||||
<a class="item" data-title="Using DNS Pods and Services" href="http://kubernetes.io/v1.1/docs/admin/dns.html" ></a>
|
||||
<a class="item" data-title="Working with Containers" href="http://kubernetes.io/v1.1/docs/user-guide/production-pods.html" ></a>
|
||||
<a class="item" data-title="Creating Pods with the Downward API" href="http://kubernetes.io/v1.1/docs/user-guide/downward-api/README.html" ></a>
|
||||
<a class="item" data-title="Using Secrets" href="http://kubernetes.io/v1.1/docs/user-guide/secrets/README.html" ></a>
|
||||
<a class="item" data-title="Using Persistent Volumes" href="http://kubernetes.io/v1.1/docs/user-guide/persistent-volumes/README.html" ></a>
|
||||
<a class="item" data-title="Updating Live Pods" href="http://kubernetes.io/v1.1/docs/user-guide/update-demo/README.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Testing and Monitoring">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Simulating Large Test Loads" href="http://kubernetes.io/v1.1/examples/k8petstore/README.html" ></a>
|
||||
<a class="item" data-title="Checking Pod Health" href="http://kubernetes.io/v1.1/docs/user-guide/liveness/README.html" ></a>
|
||||
<a class="item" data-title="Using Explorer to Examine the Runtime Environment" href="http://kubernetes.io/v1.1/examples/explorer/README.html" ></a>
|
||||
<a class="item" data-title="Resource Usage Monitoring" href="http://kubernetes.io/v1.1/docs/user-guide/monitoring.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- /pi-accordion -->
|
||||
</div> <!-- /docsToc -->
|
||||
<div id="docsContent">
|
||||
<h1 id="this-is-a-test-of-the-documentation-layout-use">This is a test of the documentation layout use</h1>
|
||||
|
||||
<p>Testing version v1.1</p>
|
||||
|
||||
<h2 id="heading-2">Heading 2</h2>
|
||||
|
||||
<p>Test of heading 2 is above</p>
|
||||
|
||||
<h3 id="heading-3">Heading 3</h3>
|
||||
|
||||
<p>Test of heading 3 is above</p>
|
||||
|
||||
<h4 id="heading-4">Heading 4</h4>
|
||||
|
||||
<p>Test of heading 4 is above</p>
|
||||
|
||||
<h1 id="code-tests">Code tests</h1>
|
||||
|
||||
<p>Testing <code>inline code</code> and below is a code example:</p>
|
||||
|
||||
<pre><code>console.log("Hello, world!");
|
||||
</code></pre>
|
||||
|
||||
<p>Okeedoke.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<footer>
|
||||
<main class="light-text">
|
||||
<nav>
|
||||
<a href="/getting-started.html">Getting Started</a>
|
||||
<a href="/docs.html">Documentation</a>
|
||||
<a href="http://blog.kubernetes.io/">Blog</a>
|
||||
<a href="/foobang.html">Community</a>
|
||||
</nav>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
<label for="wishField">I wish this page <input type="text" id="wishField" name="wishField" placeholder="made better textfield suggestions"></label>
|
||||
</div>
|
||||
<div class="center">© 2016 Kubernetes</div>
|
||||
</main>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,208 @@
|
|||
<!Doctype html>
|
||||
<html id="docs">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="/css/styles.css"/>
|
||||
<script src="/js/script.js"></script>
|
||||
<title>Kubernetes - Doc test</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cellophane" onclick="kub.toggleMenu()"></div>
|
||||
<header>
|
||||
<a href="/" class="logo"></a>
|
||||
<div class="nav-buttons" data-auto-burger="primary">
|
||||
<a href="/docs" class="button" id="viewDocs">View Documentation</a>
|
||||
<a href="/get-started" class="button" id="tryKubernetes">Try Kubernetes</a>
|
||||
<button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>
|
||||
</div>
|
||||
|
||||
<nav id="mainNav">
|
||||
<main data-auto-burger="primary">
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Get Started</a></h3>
|
||||
<p>Built for a multi-cloud world, public, private or hybrid. Seamlessly roll out new features.</p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Documentation</a></h3>
|
||||
<p>Pellentesque in ipsum id orci porta dapibus. Nulla porttitor accumsan tincidunt. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Community</a></h3>
|
||||
<p>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Blog</a></h3>
|
||||
<p>Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Quisque velit nisi, pretium ut lacinia in. </p>
|
||||
</div>
|
||||
</main>
|
||||
<main data-auto-burger="primary">
|
||||
<div class="left">
|
||||
<h5 class="github-invite">Interested in hacking on the core Kubernetes code base?</h5>
|
||||
<a href="" class="button">View On Github</a>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<h5 class="github-invite">Explore the community</h5>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="Twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear" style="clear: both"></div>
|
||||
</main>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- HERO -->
|
||||
<section id="hero" class="light-text">
|
||||
<h1>Doc test</h1>
|
||||
<h5>Testing the doducmentation with cascading layouts</h5>
|
||||
<div id="vendorStrip" class="light-text">
|
||||
<ul>
|
||||
<li><a href="/v1.1/guides">GUIDES</a></li>
|
||||
<li><a href="/v1.1/reference">REFERENCE</a></li>
|
||||
<li><a href="/v1.1/samples">SAMPLES</a></li>
|
||||
<li><a href="/v1.1/support">SUPPORT</a></li>
|
||||
</ul>
|
||||
<input type="text" id="search" placeholder="Search the docs">
|
||||
<div class="dropdown">
|
||||
<div class="readout"></div>
|
||||
<a href="/v1.1">Version 1.1</a>
|
||||
<a href="/v1.0">Version 1.0</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="encyclopedia">
|
||||
<div id="docsToc">
|
||||
<div class="pi-accordion">
|
||||
|
||||
|
||||
<a class="item" data-title="Overview" href="/v1.1/guides/" ></a>
|
||||
<div class="item" data-title="Quickstarts">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Setting Up Your Local Environment" href="/v1.1/docs/setup" ></a>
|
||||
<a class="item" data-title="5-minute Quickstart" href="/v1.1/docs/hellonode" ></a>
|
||||
<a class="item" data-title="Kubernetes 101" href="http://kubernetes.io/v1.1/docs/user-guide/walkthrough/README.html" ></a>
|
||||
<a class="item" data-title="Kubernetes 201" href="http://kubernetes.io/v1.1/docs/user-guide/walkthrough/k8s201.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Running Kubernetes">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Running Kubernetes on Your Local Machine" href="http://kubernetes.io/v1.1/gs-localmachine.html" ></a>
|
||||
<a class="item" data-title="Running Kubernetes on Google Container Engine" href="https://cloud.google.com/container-engine" ></a>
|
||||
<a class="item" data-title="Running Kubernetes on Turn-key Cloud Solutions" href="http://kubernetes.io/v1.1/gs-turnkey.html" ></a>
|
||||
<a class="item" data-title="Running Kubernetes on Custom Solutions" href="http://kubernetes.io/v1.1/gs-custom.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Common Tasks">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Using Clusters" href="http://kubernetes.io/v1.1/docs/admin/introduction.html" ></a>
|
||||
<a class="item" data-title="Using Multiple Clusters" href="http://kubernetes.io/v1.1/docs/admin/multi-cluster.html" ></a>
|
||||
<a class="item" data-title="Using Large Clusters" href="http://kubernetes.io/v1.1/docs/admin/cluster-large.html" ></a>
|
||||
<a class="item" data-title="Building High-Availability Clusters" href="http://kubernetes.io/v1.1/docs/admin/high-availability.html" ></a>
|
||||
<a class="item" data-title="Accessing Clusters" href="http://kubernetes.io/v1.1/docs/user-guide/accessing-the-cluster.html" ></a>
|
||||
<a class="item" data-title="Sharing a Cluster" href="http://kubernetes.io/v1.1/docs/admin/namespaces/README.html" ></a>
|
||||
<a class="item" data-title="Changing Cluster Size" href="https://github.com/kubernetes/kubernetes/wiki/User-FAQ#how-do-i-change-the-size-of-my-cluster" ></a>
|
||||
<a class="item" data-title="Creating a Custom Cluster from Scratch" href="http://kubernetes.io/v1.1/docs/getting-started-guides/scratch.html" ></a>
|
||||
<a class="item" data-title="Authenticating Across Clusters with kubeconfig" href="http://kubernetes.io/v1.1/docs/user-guide/kubeconfig-file.html" ></a>
|
||||
<a class="item" data-title="Using Nodes" href="http://kubernetes.io/v1.1/docs/admin/node.html" ></a>
|
||||
<a class="item" data-title="Assigning Pods to Nodes" href="http://kubernetes.io/v1.1/docs/user-guide/node-selection/README.html" ></a>
|
||||
<a class="item" data-title="Using Configuration Files" href="http://kubernetes.io/v1.1/docs/user-guide/simple-yaml.html" ></a>
|
||||
<a class="item" data-title="Configuring Containers" href="http://kubernetes.io/v1.1/docs/user-guide/configuring-containers.html" ></a>
|
||||
<a class="item" data-title="Configuring Kubernetes with Salt" href="http://kubernetes.io/v1.1/docs/admin/salt.html" ></a>
|
||||
<a class="item" data-title="Using Environment Variables" href="http://kubernetes.io/v1.1/docs/user-guide/environment-guide/README.html" ></a>
|
||||
<a class="item" data-title="Configuring Garbage Collection" href="http://kubernetes.io/v1.1/docs/admin/garbage-collection.html" ></a>
|
||||
<a class="item" data-title="Managing Compute Resources" href="http://kubernetes.io/v1.1/docs/user-guide/compute-resources.html" ></a>
|
||||
<a class="item" data-title="Applying Resource Quotas and Limits" href="http://kubernetes.io/v1.1/docs/admin/resourcequota/README.html" ></a>
|
||||
<a class="item" data-title="Setting Pod CPU and Memory Limits" href="http://kubernetes.io/v1.1/docs/admin/limitrange/README.html" ></a>
|
||||
<a class="item" data-title="Managing Deployments" href="http://kubernetes.io/v1.1/docs/user-guide/managing-deployments.html" ></a>
|
||||
<a class="item" data-title="Deploying Applications" href="http://kubernetes.io/v1.1/docs/user-guide/deploying-applications.html" ></a>
|
||||
<a class="item" data-title="Launching, Exposing, and Killing Applications" href="http://kubernetes.io/v1.1/docs/user-guide/quick-start.html" ></a>
|
||||
<a class="item" data-title="Connecting Applications" href="http://kubernetes.io/v1.1/docs/user-guide/connecting-applications.html" ></a>
|
||||
<a class="item" data-title="Networking in Kubernetes" href="http://kubernetes.io/v1.1/docs/admin/networking.html" ></a>
|
||||
<a class="item" data-title="Creating Servers with External IPs" href="http://kubernetes.io/v1.1/examples/simple-nginx.html" ></a>
|
||||
<a class="item" data-title="Setting Up and Configuring DNS" href="http://kubernetes.io/v1.1/examples/cluster-dns/README.html" ></a>
|
||||
<a class="item" data-title="Using DNS Pods and Services" href="http://kubernetes.io/v1.1/docs/admin/dns.html" ></a>
|
||||
<a class="item" data-title="Working with Containers" href="http://kubernetes.io/v1.1/docs/user-guide/production-pods.html" ></a>
|
||||
<a class="item" data-title="Creating Pods with the Downward API" href="http://kubernetes.io/v1.1/docs/user-guide/downward-api/README.html" ></a>
|
||||
<a class="item" data-title="Using Secrets" href="http://kubernetes.io/v1.1/docs/user-guide/secrets/README.html" ></a>
|
||||
<a class="item" data-title="Using Persistent Volumes" href="http://kubernetes.io/v1.1/docs/user-guide/persistent-volumes/README.html" ></a>
|
||||
<a class="item" data-title="Updating Live Pods" href="http://kubernetes.io/v1.1/docs/user-guide/update-demo/README.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Testing and Monitoring">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Simulating Large Test Loads" href="http://kubernetes.io/v1.1/examples/k8petstore/README.html" ></a>
|
||||
<a class="item" data-title="Checking Pod Health" href="http://kubernetes.io/v1.1/docs/user-guide/liveness/README.html" ></a>
|
||||
<a class="item" data-title="Using Explorer to Examine the Runtime Environment" href="http://kubernetes.io/v1.1/examples/explorer/README.html" ></a>
|
||||
<a class="item" data-title="Resource Usage Monitoring" href="http://kubernetes.io/v1.1/docs/user-guide/monitoring.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- /pi-accordion -->
|
||||
</div> <!-- /docsToc -->
|
||||
<div id="docsContent">
|
||||
<h1 id="this-is-a-test-of-the-documentation-layout-use">This is a test of the documentation layout use</h1>
|
||||
|
||||
<p>Testing version v1.1</p>
|
||||
|
||||
<h2 id="heading-2">Heading 2</h2>
|
||||
|
||||
<p>Test of heading 2 is above</p>
|
||||
|
||||
<h3 id="heading-3">Heading 3</h3>
|
||||
|
||||
<p>Test of heading 3 is above</p>
|
||||
|
||||
<h4 id="heading-4">Heading 4</h4>
|
||||
|
||||
<p>Test of heading 4 is above</p>
|
||||
|
||||
<h1 id="code-tests">Code tests</h1>
|
||||
|
||||
<p>Testing <code>inline code</code> and below is a code example:</p>
|
||||
|
||||
<pre><code>console.log("Hello, world!");
|
||||
</code></pre>
|
||||
|
||||
<p>Okeedoke.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<footer>
|
||||
<main class="light-text">
|
||||
<nav>
|
||||
<a href="/getting-started.html">Getting Started</a>
|
||||
<a href="/docs.html">Documentation</a>
|
||||
<a href="http://blog.kubernetes.io/">Blog</a>
|
||||
<a href="/foobang.html">Community</a>
|
||||
</nav>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
<label for="wishField">I wish this page <input type="text" id="wishField" name="wishField" placeholder="made better textfield suggestions"></label>
|
||||
</div>
|
||||
<div class="center">© 2016 Kubernetes</div>
|
||||
</main>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,473 @@
|
|||
<!Doctype html>
|
||||
<html id="docs">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="/css/styles.css"/>
|
||||
<script src="/js/script.js"></script>
|
||||
<title>Kubernetes - kubectl for docker users</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cellophane" onclick="kub.toggleMenu()"></div>
|
||||
<header>
|
||||
<a href="/" class="logo"></a>
|
||||
<div class="nav-buttons" data-auto-burger="primary">
|
||||
<a href="/docs" class="button" id="viewDocs">View Documentation</a>
|
||||
<a href="/get-started" class="button" id="tryKubernetes">Try Kubernetes</a>
|
||||
<button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>
|
||||
</div>
|
||||
|
||||
<nav id="mainNav">
|
||||
<main data-auto-burger="primary">
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Get Started</a></h3>
|
||||
<p>Built for a multi-cloud world, public, private or hybrid. Seamlessly roll out new features.</p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Documentation</a></h3>
|
||||
<p>Pellentesque in ipsum id orci porta dapibus. Nulla porttitor accumsan tincidunt. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Community</a></h3>
|
||||
<p>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Blog</a></h3>
|
||||
<p>Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Quisque velit nisi, pretium ut lacinia in. </p>
|
||||
</div>
|
||||
</main>
|
||||
<main data-auto-burger="primary">
|
||||
<div class="left">
|
||||
<h5 class="github-invite">Interested in hacking on the core Kubernetes code base?</h5>
|
||||
<a href="" class="button">View On Github</a>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<h5 class="github-invite">Explore the community</h5>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="Twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear" style="clear: both"></div>
|
||||
</main>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- HERO -->
|
||||
<section id="hero" class="light-text">
|
||||
<h1>kubectl for docker users</h1>
|
||||
<h5></h5>
|
||||
<div id="vendorStrip" class="light-text">
|
||||
<ul>
|
||||
<li><a href="/v1.1/guides">GUIDES</a></li>
|
||||
<li><a href="/v1.1/reference">REFERENCE</a></li>
|
||||
<li><a href="/v1.1/samples">SAMPLES</a></li>
|
||||
<li><a href="/v1.1/support">SUPPORT</a></li>
|
||||
</ul>
|
||||
<input type="text" id="search" placeholder="Search the docs">
|
||||
<div class="dropdown">
|
||||
<div class="readout"></div>
|
||||
<a href="/v1.1">Version 1.1</a>
|
||||
<a href="/v1.0">Version 1.0</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="encyclopedia">
|
||||
<div id="docsToc">
|
||||
<div class="pi-accordion">
|
||||
|
||||
|
||||
<div class="item" data-title="Kubernetes API">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Kubernetes API Overview" href="http://kubernetes.io/v1.1/docs/api.html" ></a>
|
||||
<a class="item" data-title="Kubernetes API Reference" href="http://kubernetes.io/v1.1/api-ref.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="kubectl">
|
||||
<div class="container">
|
||||
<a class="item" data-title="kubectl Overview" href="http://kubernetes.io/v1.1/docs/user-guide/kubectl-overview.html" ></a>
|
||||
<a class="item" data-title="kubectl for Docker Users" href="/v1.1/reference/docker-cli-to-kubectl" ></a>
|
||||
<a class="item" data-title="kubectl Reference (pretend the child nodes are here)" href="http://kubernetes.io/v1.1/docs/user-guide/kubectl/kubectl.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="item" data-title="JSONpath" href="http://kubernetes.io/v1.1/docs/user-guide/jsonpath.html" ></a>
|
||||
<div class="item" data-title="kube-apiserver">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Overview" href="http://kubernetes.io/v1.1/docs/admin/kube-apiserver.html" ></a>
|
||||
<a class="item" data-title="Authorization Plugins" href="http://kubernetes.io/v1.1/docs/admin/authorization.html" ></a>
|
||||
<a class="item" data-title="Authentication" href="http://kubernetes.io/v1.1/docs/admin/authentication.html" ></a>
|
||||
<a class="item" data-title="Accessing the API" href="http://kubernetes.io/v1.1/docs/admin/accessing-the-api.html" ></a>
|
||||
<a class="item" data-title="Admission Controllers" href="http://kubernetes.io/v1.1/docs/admin/admission-controllers.html" ></a>
|
||||
<a class="item" data-title="Managing Service Accounts" href="http://kubernetes.io/v1.1/docs/admin/service-accounts-admin.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="item" data-title="kub-scheduler" href="http://kubernetes.io/v1.1/docs/admin/kube-scheduler.html" ></a>
|
||||
<a class="item" data-title="kubelet" href="http://kubernetes.io/v1.1/docs/admin/kubelet.html" ></a>
|
||||
<a class="item" data-title="kube-proxy" href="http://kubernetes.io/v1.1/docs/admin/kube-proxy.html" ></a>
|
||||
<a class="item" data-title="etcd" href="http://kubernetes.io/v1.1/docs/admin/etcd.html" ></a>
|
||||
<div class="item" data-title="Concept Definitions">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Container Environment" href="http://kubernetes.io/v1.1/docs/user-guide/container-environment.html" ></a>
|
||||
<a class="item" data-title="Images" href="http://kubernetes.io/v1.1/docs/user-guide/images.html" ></a>
|
||||
<a class="item" data-title="Downward API" href="http://kubernetes.io/v1.1/docs/user-guide/downward-api.html" ></a>
|
||||
<a class="item" data-title="Pods" href="http://kubernetes.io/v1.1/docs/user-guide/pods.html" ></a>
|
||||
<a class="item" data-title="Labels and Selectors" href="http://kubernetes.io/v1.1/docs/user-guide/labels.html" ></a>
|
||||
<a class="item" data-title="Replication Controller" href="http://kubernetes.io/v1.1/docs/user-guide/replication-controller.html" ></a>
|
||||
<a class="item" data-title="Services" href="http://kubernetes.io/v1.1/docs/user-guide/services.html" ></a>
|
||||
<a class="item" data-title="Volumes" href="http://kubernetes.io/v1.1/docs/user-guide/volumes.html" ></a>
|
||||
<a class="item" data-title="Persistent Volumes" href="http://kubernetes.io/v1.1/docs/user-guide/persistent-volumes.html" ></a>
|
||||
<a class="item" data-title="Secrets" href="http://kubernetes.io/v1.1/docs/user-guide/secrets.html" ></a>
|
||||
<a class="item" data-title="Names" href="http://kubernetes.io/v1.1/docs/user-guide/identifiers.html" ></a>
|
||||
<a class="item" data-title="Namespaces" href="http://kubernetes.io/v1.1/docs/user-guide/namespaces.html" ></a>
|
||||
<a class="item" data-title="Service Accounts" href="http://kubernetes.io/v1.1/docs/user-guide/service-accounts.html" ></a>
|
||||
<a class="item" data-title="Annotations" href="http://kubernetes.io/v1.1/docs/user-guide/annotations.html" ></a>
|
||||
<a class="item" data-title="Daemon Sets" href="http://kubernetes.io/v1.1/docs/admin/daemons.html" ></a>
|
||||
<a class="item" data-title="Deployments" href="http://kubernetes.io/v1.1/docs/user-guide/deployments.html" ></a>
|
||||
<a class="item" data-title="Ingress Resources" href="http://kubernetes.io/v1.1/docs/user-guide/ingress.html" ></a>
|
||||
<a class="item" data-title="Horizontal Pod Autoscaling" href="http://kubernetes.io/v1.1/docs/user-guide/horizontal-pod-autoscaler.html" ></a>
|
||||
<a class="item" data-title="Jobs" href="http://kubernetes.io/v1.1/docs/user-guide/jobs.html" ></a>
|
||||
<a class="item" data-title="Resource Quotas" href="http://kubernetes.io/v1.1/docs/admin/resource-quota.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Kubernetes Design Docs">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Kubernetes Architecture" href="http://kubernetes.io/v1.1/docs/design/architecture.html" ></a>
|
||||
<a class="item" data-title="Kubernetes Design Overview" href="http://kubernetes.io/v1.1/docs/design/README.html" ></a>
|
||||
<a class="item" data-title="Security in Kubernetes" href="http://kubernetes.io/v1.1/docs/design/security.html" ></a>
|
||||
<a class="item" data-title="Kubernetes Identity and Access Management" href="http://kubernetes.io/v1.1/docs/design/access.html" ></a>
|
||||
<a class="item" data-title="Security Contexts" href="http://kubernetes.io/v1.1/docs/design/security_context.html" ></a>
|
||||
<a class="item" data-title="Kubernetes OpenVSwitch GRE/VxLAN networking" href="http://kubernetes.io/v1.1/docs/admin/ovs-networking.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- /pi-accordion -->
|
||||
</div> <!-- /docsToc -->
|
||||
<div id="docsContent">
|
||||
<p>In this doc, we introduce the Kubernetes command line for interacting with the api to docker-cli users. The tool, kubectl, is designed to be familiar to docker-cli users but there are a few necessary differences. Each section of this doc highlights a docker subcommand explains the kubectl equivalent.</p>
|
||||
|
||||
<p><strong>Table of Contents</strong></p>
|
||||
|
||||
<h4 id="docker-run">docker run</h4>
|
||||
|
||||
<p>How do I run an nginx container and expose it to the world? Checkout <a href="kubectl/kubectl_run.html">kubectl run</a>.</p>
|
||||
|
||||
<p>With docker:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ docker run -d --restart=always -e DOMAIN=cluster --name nginx-app -p 80:80 nginx
|
||||
a9ec34d9878748d2f33dc20cb25c714ff21da8d40558b45bfaec9955859075d0
|
||||
$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
a9ec34d98787 nginx "nginx -g 'daemon of 2 seconds ago Up 2 seconds 0.0.0.0:80->80/tcp, 443/tcp nginx-app
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>With kubectl:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console"># start the pod running nginx
|
||||
$ kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
|
||||
replicationcontroller "nginx-app" created
|
||||
# expose a port through with a service
|
||||
$ kubectl expose rc nginx-app --port=80 --name=nginx-http
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>With kubectl, we create a <a href="replication-controller.html">replication controller</a> which will make sure that N pods are running nginx (where N is the number of replicas stated in the spec, which defaults to 1). We also create a <a href="services.html">service</a> with a selector that matches the replication controller’s selector. See the <a href="quick-start.html">Quick start</a> for more information.</p>
|
||||
|
||||
<p>By default images are run in the background, similar to <code>docker run -d ...</code>, if you want to run things in the foreground, use:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">kubectl run [-i] [--tty] --attach <name> --image=<image>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>Unlike <code>docker run ...</code>, if <code>--attach</code> is specified, we attach to <code>stdin</code>, <code>stdout</code> and <code>stderr</code>, there is no ability to control which streams are attached (<code>docker -a ...</code>).</p>
|
||||
|
||||
<p>Because we start a replication controller for your container, it will be restarted if you terminate the attached process (e.g. <code>ctrl-c</code>), this is different than <code>docker run -it</code>.
|
||||
To destroy the replication controller (and it’s pods) you need to run <code>kubectl delete rc <name></code></p>
|
||||
|
||||
<h4 id="docker-ps">docker ps</h4>
|
||||
|
||||
<p>How do I list what is currently running? Checkout <a href="kubectl/kubectl_get.html">kubectl get</a>.</p>
|
||||
|
||||
<p>With docker:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
a9ec34d98787 nginx "nginx -g 'daemon of About an hour ago Up About an hour 0.0.0.0:80->80/tcp, 443/tcp nginx-app
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>With kubectl:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ kubectl get po
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-app-5jyvm 1/1 Running 0 1h
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 id="docker-attach">docker attach</h4>
|
||||
|
||||
<p>How do I attach to a process that is already running in a container? Checkout <a href="kubectl/kubectl_attach.html">kubectl attach</a></p>
|
||||
|
||||
<p>With docker:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
a9ec34d98787 nginx "nginx -g 'daemon of 8 minutes ago Up 8 minutes 0.0.0.0:80->80/tcp, 443/tcp nginx-app
|
||||
$ docker attach -it a9ec34d98787
|
||||
...
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>With kubectl:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ kubectl get pods
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-app-5jyvm 1/1 Running 0 10m
|
||||
$ kubectl attach -it nginx-app-5jyvm
|
||||
...
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 id="docker-exec">docker exec</h4>
|
||||
|
||||
<p>How do I execute a command in a container? Checkout <a href="kubectl/kubectl_exec.html">kubectl exec</a>.</p>
|
||||
|
||||
<p>With docker:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
a9ec34d98787 nginx "nginx -g 'daemon of 8 minutes ago Up 8 minutes 0.0.0.0:80->80/tcp, 443/tcp nginx-app
|
||||
$ docker exec a9ec34d98787 cat /etc/hostname
|
||||
a9ec34d98787
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>With kubectl:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ kubectl get po
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-app-5jyvm 1/1 Running 0 10m
|
||||
$ kubectl exec nginx-app-5jyvm -- cat /etc/hostname
|
||||
nginx-app-5jyvm
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>What about interactive commands?</p>
|
||||
|
||||
<p>With docker:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ docker exec -ti a9ec34d98787 /bin/sh
|
||||
|
||||
# exit
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>With kubectl:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ kubectl exec -ti nginx-app-5jyvm -- /bin/sh
|
||||
|
||||
# exit
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>For more information see <a href="getting-into-containers.html">Getting into containers</a>.</p>
|
||||
|
||||
<h4 id="docker-logs">docker logs</h4>
|
||||
|
||||
<p>How do I follow stdout/stderr of a running process? Checkout <a href="kubectl/kubectl_logs.html">kubectl logs</a>.</p>
|
||||
|
||||
<p>With docker:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ docker logs -f a9e
|
||||
192.168.9.1 - - [14/Jul/2015:01:04:02 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-"
|
||||
192.168.9.1 - - [14/Jul/2015:01:04:03 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-"
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>With kubectl:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ kubectl logs -f nginx-app-zibvs
|
||||
10.240.63.110 - - [14/Jul/2015:01:09:01 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
|
||||
10.240.63.110 - - [14/Jul/2015:01:09:02 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>Now’s a good time to mention slight difference between pods and containers; by default pods will not terminate if their processes exit. Instead it will restart the process. This is similar to the docker run option <code>--restart=always</code> with one major difference. In docker, the output for each invocation of the process is concatenated but for Kubernetes, each invocation is separate. To see the output from a previous run in Kubernetes, do this:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ kubectl logs --previous nginx-app-zibvs
|
||||
10.240.63.110 - - [14/Jul/2015:01:09:01 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
|
||||
10.240.63.110 - - [14/Jul/2015:01:09:02 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>See <a href="logging.html">Logging</a> for more information.</p>
|
||||
|
||||
<h4 id="docker-stop-and-docker-rm">docker stop and docker rm</h4>
|
||||
|
||||
<p>How do I stop and delete a running process? Checkout <a href="kubectl/kubectl_delete.html">kubectl delete</a>.</p>
|
||||
|
||||
<p>With docker</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
a9ec34d98787 nginx "nginx -g 'daemon of 22 hours ago Up 22 hours 0.0.0.0:80->80/tcp, 443/tcp nginx-app
|
||||
$ docker stop a9ec34d98787
|
||||
a9ec34d98787
|
||||
$ docker rm a9ec34d98787
|
||||
a9ec34d98787
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>With kubectl:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ kubectl get rc nginx-app
|
||||
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
|
||||
nginx-app nginx-app nginx run=nginx-app 1
|
||||
$ kubectl get po
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-app-aualv 1/1 Running 0 16s
|
||||
$ kubectl delete rc nginx-app
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-app-aualv 1/1 Running 0 16s
|
||||
$ kubectl get po
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>Notice that we don’t delete the pod directly. With kubectl we want to delete the replication controller that owns the pod. If we delete the pod directly, the replication controller will recreate the pod.</p>
|
||||
|
||||
<h4 id="docker-login">docker login</h4>
|
||||
|
||||
<p>There is no direct analog of <code>docker login</code> in kubectl. If you are interested in using Kubernetes with a private registry, see <a href="images.html#using-a-private-registry">Using a Private Registry</a>.</p>
|
||||
|
||||
<h4 id="docker-version">docker version</h4>
|
||||
|
||||
<p>How do I get the version of my client and server? Checkout <a href="kubectl/kubectl_version.html">kubectl version</a>.</p>
|
||||
|
||||
<p>With docker:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ docker version
|
||||
Client version: 1.7.0
|
||||
Client API version: 1.19
|
||||
Go version (client): go1.4.2
|
||||
Git commit (client): 0baf609
|
||||
OS/Arch (client): linux/amd64
|
||||
Server version: 1.7.0
|
||||
Server API version: 1.19
|
||||
Go version (server): go1.4.2
|
||||
Git commit (server): 0baf609
|
||||
OS/Arch (server): linux/amd64
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>With kubectl:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ kubectl version
|
||||
Client Version: version.Info{Major:"0", Minor:"20.1", GitVersion:"v0.20.1", GitCommit:"", GitTreeState:"not a git tree"}
|
||||
Server Version: version.Info{Major:"0", Minor:"21+", GitVersion:"v0.21.1-411-g32699e873ae1ca-dirty", GitCommit:"32699e873ae1caa01812e41de7eab28df4358ee4", GitTreeState:"dirty"}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 id="docker-info">docker info</h4>
|
||||
|
||||
<p>How do I get miscellaneous info about my environment and configuration? Checkout <a href="kubectl/kubectl_cluster-info.html">kubectl cluster-info</a>.</p>
|
||||
|
||||
<p>With docker:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ docker info
|
||||
Containers: 40
|
||||
Images: 168
|
||||
Storage Driver: aufs
|
||||
Root Dir: /usr/local/google/docker/aufs
|
||||
Backing Filesystem: extfs
|
||||
Dirs: 248
|
||||
Dirperm1 Supported: false
|
||||
Execution Driver: native-0.2
|
||||
Logging Driver: json-file
|
||||
Kernel Version: 3.13.0-53-generic
|
||||
Operating System: Ubuntu 14.04.2 LTS
|
||||
CPUs: 12
|
||||
Total Memory: 31.32 GiB
|
||||
Name: k8s-is-fun.mtv.corp.google.com
|
||||
ID: ADUV:GCYR:B3VJ:HMPO:LNPQ:KD5S:YKFQ:76VN:IANZ:7TFV:ZBF4:BYJO
|
||||
WARNING: No swap limit support
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<p>With kubectl:</p>
|
||||
|
||||
<div class="highlight">
|
||||
<pre><code class="language-console">$ kubectl cluster-info
|
||||
Kubernetes master is running at https://108.59.85.141
|
||||
KubeDNS is running at https://108.59.85.141/api/v1/proxy/namespaces/kube-system/services/kube-dns
|
||||
KubeUI is running at https://108.59.85.141/api/v1/proxy/namespaces/kube-system/services/kube-ui
|
||||
Grafana is running at https://108.59.85.141/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana
|
||||
Heapster is running at https://108.59.85.141/api/v1/proxy/namespaces/kube-system/services/monitoring-heapster
|
||||
InfluxDB is running at https://108.59.85.141/api/v1/proxy/namespaces/kube-system/services/monitoring-influxdb
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||
<p><a href=""><img src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/docker-cli-to-kubectl.md?pixel" alt="Analytics" /></a>
|
||||
<!-- END MUNGE: GENERATED_ANALYTICS --></p>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<footer>
|
||||
<main class="light-text">
|
||||
<nav>
|
||||
<a href="/getting-started.html">Getting Started</a>
|
||||
<a href="/docs.html">Documentation</a>
|
||||
<a href="http://blog.kubernetes.io/">Blog</a>
|
||||
<a href="/foobang.html">Community</a>
|
||||
</nav>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
<label for="wishField">I wish this page <input type="text" id="wishField" name="wishField" placeholder="made better textfield suggestions"></label>
|
||||
</div>
|
||||
<div class="center">© 2016 Kubernetes</div>
|
||||
</main>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,210 @@
|
|||
<!Doctype html>
|
||||
<html id="docs">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="/css/styles.css"/>
|
||||
<script src="/js/script.js"></script>
|
||||
<title>Kubernetes - Doc test</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cellophane" onclick="kub.toggleMenu()"></div>
|
||||
<header>
|
||||
<a href="/" class="logo"></a>
|
||||
<div class="nav-buttons" data-auto-burger="primary">
|
||||
<a href="/docs" class="button" id="viewDocs">View Documentation</a>
|
||||
<a href="/get-started" class="button" id="tryKubernetes">Try Kubernetes</a>
|
||||
<button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>
|
||||
</div>
|
||||
|
||||
<nav id="mainNav">
|
||||
<main data-auto-burger="primary">
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Get Started</a></h3>
|
||||
<p>Built for a multi-cloud world, public, private or hybrid. Seamlessly roll out new features.</p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Documentation</a></h3>
|
||||
<p>Pellentesque in ipsum id orci porta dapibus. Nulla porttitor accumsan tincidunt. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Community</a></h3>
|
||||
<p>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Blog</a></h3>
|
||||
<p>Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Quisque velit nisi, pretium ut lacinia in. </p>
|
||||
</div>
|
||||
</main>
|
||||
<main data-auto-burger="primary">
|
||||
<div class="left">
|
||||
<h5 class="github-invite">Interested in hacking on the core Kubernetes code base?</h5>
|
||||
<a href="" class="button">View On Github</a>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<h5 class="github-invite">Explore the community</h5>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="Twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear" style="clear: both"></div>
|
||||
</main>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- HERO -->
|
||||
<section id="hero" class="light-text">
|
||||
<h1>Doc test</h1>
|
||||
<h5>Testing the doducmentation with cascading layouts</h5>
|
||||
<div id="vendorStrip" class="light-text">
|
||||
<ul>
|
||||
<li><a href="/v1.1/guides">GUIDES</a></li>
|
||||
<li><a href="/v1.1/reference">REFERENCE</a></li>
|
||||
<li><a href="/v1.1/samples">SAMPLES</a></li>
|
||||
<li><a href="/v1.1/support">SUPPORT</a></li>
|
||||
</ul>
|
||||
<input type="text" id="search" placeholder="Search the docs">
|
||||
<div class="dropdown">
|
||||
<div class="readout"></div>
|
||||
<a href="/v1.1">Version 1.1</a>
|
||||
<a href="/v1.0">Version 1.0</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="encyclopedia">
|
||||
<div id="docsToc">
|
||||
<div class="pi-accordion">
|
||||
|
||||
|
||||
<div class="item" data-title="Kubernetes API">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Kubernetes API Overview" href="http://kubernetes.io/v1.1/docs/api.html" ></a>
|
||||
<a class="item" data-title="Kubernetes API Reference" href="http://kubernetes.io/v1.1/api-ref.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="kubectl">
|
||||
<div class="container">
|
||||
<a class="item" data-title="kubectl Overview" href="http://kubernetes.io/v1.1/docs/user-guide/kubectl-overview.html" ></a>
|
||||
<a class="item" data-title="kubectl for Docker Users" href="/v1.1/reference/docker-cli-to-kubectl" ></a>
|
||||
<a class="item" data-title="kubectl Reference (pretend the child nodes are here)" href="http://kubernetes.io/v1.1/docs/user-guide/kubectl/kubectl.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="item" data-title="JSONpath" href="http://kubernetes.io/v1.1/docs/user-guide/jsonpath.html" ></a>
|
||||
<div class="item" data-title="kube-apiserver">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Overview" href="http://kubernetes.io/v1.1/docs/admin/kube-apiserver.html" ></a>
|
||||
<a class="item" data-title="Authorization Plugins" href="http://kubernetes.io/v1.1/docs/admin/authorization.html" ></a>
|
||||
<a class="item" data-title="Authentication" href="http://kubernetes.io/v1.1/docs/admin/authentication.html" ></a>
|
||||
<a class="item" data-title="Accessing the API" href="http://kubernetes.io/v1.1/docs/admin/accessing-the-api.html" ></a>
|
||||
<a class="item" data-title="Admission Controllers" href="http://kubernetes.io/v1.1/docs/admin/admission-controllers.html" ></a>
|
||||
<a class="item" data-title="Managing Service Accounts" href="http://kubernetes.io/v1.1/docs/admin/service-accounts-admin.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="item" data-title="kub-scheduler" href="http://kubernetes.io/v1.1/docs/admin/kube-scheduler.html" ></a>
|
||||
<a class="item" data-title="kubelet" href="http://kubernetes.io/v1.1/docs/admin/kubelet.html" ></a>
|
||||
<a class="item" data-title="kube-proxy" href="http://kubernetes.io/v1.1/docs/admin/kube-proxy.html" ></a>
|
||||
<a class="item" data-title="etcd" href="http://kubernetes.io/v1.1/docs/admin/etcd.html" ></a>
|
||||
<div class="item" data-title="Concept Definitions">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Container Environment" href="http://kubernetes.io/v1.1/docs/user-guide/container-environment.html" ></a>
|
||||
<a class="item" data-title="Images" href="http://kubernetes.io/v1.1/docs/user-guide/images.html" ></a>
|
||||
<a class="item" data-title="Downward API" href="http://kubernetes.io/v1.1/docs/user-guide/downward-api.html" ></a>
|
||||
<a class="item" data-title="Pods" href="http://kubernetes.io/v1.1/docs/user-guide/pods.html" ></a>
|
||||
<a class="item" data-title="Labels and Selectors" href="http://kubernetes.io/v1.1/docs/user-guide/labels.html" ></a>
|
||||
<a class="item" data-title="Replication Controller" href="http://kubernetes.io/v1.1/docs/user-guide/replication-controller.html" ></a>
|
||||
<a class="item" data-title="Services" href="http://kubernetes.io/v1.1/docs/user-guide/services.html" ></a>
|
||||
<a class="item" data-title="Volumes" href="http://kubernetes.io/v1.1/docs/user-guide/volumes.html" ></a>
|
||||
<a class="item" data-title="Persistent Volumes" href="http://kubernetes.io/v1.1/docs/user-guide/persistent-volumes.html" ></a>
|
||||
<a class="item" data-title="Secrets" href="http://kubernetes.io/v1.1/docs/user-guide/secrets.html" ></a>
|
||||
<a class="item" data-title="Names" href="http://kubernetes.io/v1.1/docs/user-guide/identifiers.html" ></a>
|
||||
<a class="item" data-title="Namespaces" href="http://kubernetes.io/v1.1/docs/user-guide/namespaces.html" ></a>
|
||||
<a class="item" data-title="Service Accounts" href="http://kubernetes.io/v1.1/docs/user-guide/service-accounts.html" ></a>
|
||||
<a class="item" data-title="Annotations" href="http://kubernetes.io/v1.1/docs/user-guide/annotations.html" ></a>
|
||||
<a class="item" data-title="Daemon Sets" href="http://kubernetes.io/v1.1/docs/admin/daemons.html" ></a>
|
||||
<a class="item" data-title="Deployments" href="http://kubernetes.io/v1.1/docs/user-guide/deployments.html" ></a>
|
||||
<a class="item" data-title="Ingress Resources" href="http://kubernetes.io/v1.1/docs/user-guide/ingress.html" ></a>
|
||||
<a class="item" data-title="Horizontal Pod Autoscaling" href="http://kubernetes.io/v1.1/docs/user-guide/horizontal-pod-autoscaler.html" ></a>
|
||||
<a class="item" data-title="Jobs" href="http://kubernetes.io/v1.1/docs/user-guide/jobs.html" ></a>
|
||||
<a class="item" data-title="Resource Quotas" href="http://kubernetes.io/v1.1/docs/admin/resource-quota.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Kubernetes Design Docs">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Kubernetes Architecture" href="http://kubernetes.io/v1.1/docs/design/architecture.html" ></a>
|
||||
<a class="item" data-title="Kubernetes Design Overview" href="http://kubernetes.io/v1.1/docs/design/README.html" ></a>
|
||||
<a class="item" data-title="Security in Kubernetes" href="http://kubernetes.io/v1.1/docs/design/security.html" ></a>
|
||||
<a class="item" data-title="Kubernetes Identity and Access Management" href="http://kubernetes.io/v1.1/docs/design/access.html" ></a>
|
||||
<a class="item" data-title="Security Contexts" href="http://kubernetes.io/v1.1/docs/design/security_context.html" ></a>
|
||||
<a class="item" data-title="Kubernetes OpenVSwitch GRE/VxLAN networking" href="http://kubernetes.io/v1.1/docs/admin/ovs-networking.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- /pi-accordion -->
|
||||
</div> <!-- /docsToc -->
|
||||
<div id="docsContent">
|
||||
<h1 id="this-is-a-test-of-the-documentation-layout-use">This is a test of the documentation layout use</h1>
|
||||
|
||||
<p>Testing version v1.1</p>
|
||||
|
||||
<h2 id="heading-2">Heading 2</h2>
|
||||
|
||||
<p>Test of heading 2 is above</p>
|
||||
|
||||
<h3 id="heading-3">Heading 3</h3>
|
||||
|
||||
<p>Test of heading 3 is above</p>
|
||||
|
||||
<h4 id="heading-4">Heading 4</h4>
|
||||
|
||||
<p>Test of heading 4 is above</p>
|
||||
|
||||
<h1 id="code-tests">Code tests</h1>
|
||||
|
||||
<p>Testing <code>inline code</code> and below is a code example:</p>
|
||||
|
||||
<pre><code>console.log("Hello, world!");
|
||||
</code></pre>
|
||||
|
||||
<p>Okeedoke.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<footer>
|
||||
<main class="light-text">
|
||||
<nav>
|
||||
<a href="/getting-started.html">Getting Started</a>
|
||||
<a href="/docs.html">Documentation</a>
|
||||
<a href="http://blog.kubernetes.io/">Blog</a>
|
||||
<a href="/foobang.html">Community</a>
|
||||
</nav>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
<label for="wishField">I wish this page <input type="text" id="wishField" name="wishField" placeholder="made better textfield suggestions"></label>
|
||||
</div>
|
||||
<div class="center">© 2016 Kubernetes</div>
|
||||
</main>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,177 @@
|
|||
<!Doctype html>
|
||||
<html id="docs">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="/css/styles.css"/>
|
||||
<script src="/js/script.js"></script>
|
||||
<title>Kubernetes - Doc test</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cellophane" onclick="kub.toggleMenu()"></div>
|
||||
<header>
|
||||
<a href="/" class="logo"></a>
|
||||
<div class="nav-buttons" data-auto-burger="primary">
|
||||
<a href="/docs" class="button" id="viewDocs">View Documentation</a>
|
||||
<a href="/get-started" class="button" id="tryKubernetes">Try Kubernetes</a>
|
||||
<button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>
|
||||
</div>
|
||||
|
||||
<nav id="mainNav">
|
||||
<main data-auto-burger="primary">
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Get Started</a></h3>
|
||||
<p>Built for a multi-cloud world, public, private or hybrid. Seamlessly roll out new features.</p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Documentation</a></h3>
|
||||
<p>Pellentesque in ipsum id orci porta dapibus. Nulla porttitor accumsan tincidunt. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Community</a></h3>
|
||||
<p>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Blog</a></h3>
|
||||
<p>Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Quisque velit nisi, pretium ut lacinia in. </p>
|
||||
</div>
|
||||
</main>
|
||||
<main data-auto-burger="primary">
|
||||
<div class="left">
|
||||
<h5 class="github-invite">Interested in hacking on the core Kubernetes code base?</h5>
|
||||
<a href="" class="button">View On Github</a>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<h5 class="github-invite">Explore the community</h5>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="Twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear" style="clear: both"></div>
|
||||
</main>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- HERO -->
|
||||
<section id="hero" class="light-text">
|
||||
<h1>Doc test</h1>
|
||||
<h5>Testing the doducmentation with cascading layouts</h5>
|
||||
<div id="vendorStrip" class="light-text">
|
||||
<ul>
|
||||
<li><a href="/v1.1/guides">GUIDES</a></li>
|
||||
<li><a href="/v1.1/reference">REFERENCE</a></li>
|
||||
<li><a href="/v1.1/samples">SAMPLES</a></li>
|
||||
<li><a href="/v1.1/support">SUPPORT</a></li>
|
||||
</ul>
|
||||
<input type="text" id="search" placeholder="Search the docs">
|
||||
<div class="dropdown">
|
||||
<div class="readout"></div>
|
||||
<a href="/v1.1">Version 1.1</a>
|
||||
<a href="/v1.0">Version 1.0</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="encyclopedia">
|
||||
<div id="docsToc">
|
||||
<div class="pi-accordion">
|
||||
|
||||
|
||||
<div class="item" data-title="Clustered Application Samples">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Apache Cassandra Database" href="http://kubernetes.io/v1.1/examples/cassandra/README.html" ></a>
|
||||
<a class="item" data-title="Apache Spark" href="http://kubernetes.io/v1.1/examples/spark/README.html" ></a>
|
||||
<a class="item" data-title="Apache Storm" href="http://kubernetes.io/v1.1/examples/storm/README.html" ></a>
|
||||
<a class="item" data-title="Distributed Task Queue" href="http://kubernetes.io/v1.1/examples/celery-rabbitmq/README.html" ></a>
|
||||
<a class="item" data-title="Hazelcast" href="http://kubernetes.io/v1.1/examples/hazelcast/README.html" ></a>
|
||||
<a class="item" data-title="Meteor Applications" href="http://kubernetes.io/v1.1/examples/meteor/README.html" ></a>
|
||||
<a class="item" data-title="Redis" href="http://kubernetes.io/v1.1/examples/redis/README.html" ></a>
|
||||
<a class="item" data-title="RethinkDB" href="http://kubernetes.io/v1.1/examples/rethinkdb/README.html" ></a>
|
||||
<a class="item" data-title="Elasticsearch/Kibana Logging Demonstration" href="http://kubernetes.io/v1.1/docs/user-guide/logging-demo/README.html" ></a>
|
||||
<a class="item" data-title="Elasticsearch" href="http://kubernetes.io/v1.1/examples/elasticsearch/README.html" ></a>
|
||||
<a class="item" data-title="OpenShift Origin" href="http://kubernetes.io/v1.1/examples/openshift-origin/README.html" ></a>
|
||||
<a class="item" data-title="Ceph" href="http://kubernetes.io/v1.1/examples/rbd/README.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Persistent Volume Samples">
|
||||
<div class="container">
|
||||
<a class="item" data-title="WordPress on a Kubernetes Persistent Volume" href="http://kubernetes.io/v1.1/examples/mysql-wordpress-pd/README.html" ></a>
|
||||
<a class="item" data-title="GlusterFS" href="http://kubernetes.io/v1.1/examples/glusterfs/README.html" ></a>
|
||||
<a class="item" data-title="iSCSI" href="http://kubernetes.io/v1.1/examples/iscsi/README.html" ></a>
|
||||
<a class="item" data-title="NFS" href="http://kubernetes.io/v1.1/examples/nfs/README.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Multi-tier Application Samples">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Guestbook - Go Server" href="http://kubernetes.io/v1.1/examples/guestbook-go/README.html" ></a>
|
||||
<a class="item" data-title="GuestBook - PHP Server" href="http://kubernetes.io/v1.1/examples/guestbook/README.html" ></a>
|
||||
<a class="item" data-title="MySQL - Phabricator Server" href="http://kubernetes.io/v1.1/examples/phabricator/README.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- /pi-accordion -->
|
||||
</div> <!-- /docsToc -->
|
||||
<div id="docsContent">
|
||||
<h1 id="this-is-a-test-of-the-documentation-layout-use">This is a test of the documentation layout use</h1>
|
||||
|
||||
<p>Testing version v1.1</p>
|
||||
|
||||
<h2 id="heading-2">Heading 2</h2>
|
||||
|
||||
<p>Test of heading 2 is above</p>
|
||||
|
||||
<h3 id="heading-3">Heading 3</h3>
|
||||
|
||||
<p>Test of heading 3 is above</p>
|
||||
|
||||
<h4 id="heading-4">Heading 4</h4>
|
||||
|
||||
<p>Test of heading 4 is above</p>
|
||||
|
||||
<h1 id="code-tests">Code tests</h1>
|
||||
|
||||
<p>Testing <code>inline code</code> and below is a code example:</p>
|
||||
|
||||
<pre><code>console.log("Hello, world!");
|
||||
</code></pre>
|
||||
|
||||
<p>Okeedoke.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<footer>
|
||||
<main class="light-text">
|
||||
<nav>
|
||||
<a href="/getting-started.html">Getting Started</a>
|
||||
<a href="/docs.html">Documentation</a>
|
||||
<a href="http://blog.kubernetes.io/">Blog</a>
|
||||
<a href="/foobang.html">Community</a>
|
||||
</nav>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
<label for="wishField">I wish this page <input type="text" id="wishField" name="wishField" placeholder="made better textfield suggestions"></label>
|
||||
</div>
|
||||
<div class="center">© 2016 Kubernetes</div>
|
||||
</main>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,175 @@
|
|||
<!Doctype html>
|
||||
<html id="docs">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="/css/styles.css"/>
|
||||
<script src="/js/script.js"></script>
|
||||
<title>Kubernetes - Doc test</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cellophane" onclick="kub.toggleMenu()"></div>
|
||||
<header>
|
||||
<a href="/" class="logo"></a>
|
||||
<div class="nav-buttons" data-auto-burger="primary">
|
||||
<a href="/docs" class="button" id="viewDocs">View Documentation</a>
|
||||
<a href="/get-started" class="button" id="tryKubernetes">Try Kubernetes</a>
|
||||
<button id="hamburger" onclick="kub.toggleMenu()" data-auto-burger-exclude><div></div></button>
|
||||
</div>
|
||||
|
||||
<nav id="mainNav">
|
||||
<main data-auto-burger="primary">
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Get Started</a></h3>
|
||||
<p>Built for a multi-cloud world, public, private or hybrid. Seamlessly roll out new features.</p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Documentation</a></h3>
|
||||
<p>Pellentesque in ipsum id orci porta dapibus. Nulla porttitor accumsan tincidunt. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Community</a></h3>
|
||||
<p>Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. </p>
|
||||
</div>
|
||||
<div class="nav-box">
|
||||
<h3><a href="">Blog</a></h3>
|
||||
<p>Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Quisque velit nisi, pretium ut lacinia in. </p>
|
||||
</div>
|
||||
</main>
|
||||
<main data-auto-burger="primary">
|
||||
<div class="left">
|
||||
<h5 class="github-invite">Interested in hacking on the core Kubernetes code base?</h5>
|
||||
<a href="" class="button">View On Github</a>
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<h5 class="github-invite">Explore the community</h5>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="Twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear" style="clear: both"></div>
|
||||
</main>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<!-- HERO -->
|
||||
<section id="hero" class="light-text">
|
||||
<h1>Doc test</h1>
|
||||
<h5>Testing the doducmentation with cascading layouts</h5>
|
||||
<div id="vendorStrip" class="light-text">
|
||||
<ul>
|
||||
<li><a href="/v1.1/guides">GUIDES</a></li>
|
||||
<li><a href="/v1.1/reference">REFERENCE</a></li>
|
||||
<li><a href="/v1.1/samples">SAMPLES</a></li>
|
||||
<li><a href="/v1.1/support">SUPPORT</a></li>
|
||||
</ul>
|
||||
<input type="text" id="search" placeholder="Search the docs">
|
||||
<div class="dropdown">
|
||||
<div class="readout"></div>
|
||||
<a href="/v1.1">Version 1.1</a>
|
||||
<a href="/v1.0">Version 1.0</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="encyclopedia">
|
||||
<div id="docsToc">
|
||||
<div class="pi-accordion">
|
||||
|
||||
|
||||
<div class="item" data-title="Troubleshooting">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Web Interface" href="http://kubernetes.io/v1.1/docs/user-guide/ui.html" ></a>
|
||||
<a class="item" data-title="Logging" href="http://kubernetes.io/v1.1/docs/user-guide/logging.html" ></a>
|
||||
<a class="item" data-title="Monitoring" href="http://kubernetes.io/v1.1/docs/user-guide/monitoring.html" ></a>
|
||||
<a class="item" data-title="Container Access (exec)" href="http://kubernetes.io/v1.1/docs/user-guide/getting-into-containers.html" ></a>
|
||||
<a class="item" data-title="Connect with Proxies" href="http://kubernetes.io/v1.1/docs/user-guide/connecting-to-applications-proxy.html" ></a>
|
||||
<a class="item" data-title="Connect with Port Forwarding" href="http://kubernetes.io/v1.1/docs/user-guide/connecting-to-applications-port-forward.html" ></a>
|
||||
<a class="item" data-title="Troubleshooting Applications" href="http://kubernetes.io/v1.1/docs/user-guide/application-troubleshooting.html" ></a>
|
||||
<a class="item" data-title="Troubleshooting Clusters" href="http://kubernetes.io/v1.1/docs/admin/cluster-troubleshooting.html" ></a>
|
||||
<a class="item" data-title="Best Practices for Configuration" href="http://kubernetes.io/v1.1/docs/user-guide/config-best-practices.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Frequently Asked Questions">
|
||||
<div class="container">
|
||||
<a class="item" data-title="User FAQ" href="https://github.com/kubernetes/kubernetes/wiki/User-FAQ" ></a>
|
||||
<a class="item" data-title="Debugging FAQ" href="https://github.com/kubernetes/kubernetes/wiki/Debugging-FAQ" ></a>
|
||||
<a class="item" data-title="Services FAQ" href="https://github.com/kubernetes/kubernetes/wiki/Services-FAQ" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" data-title="Other Resources">
|
||||
<div class="container">
|
||||
<a class="item" data-title="Known Issues" href="http://kubernetes.io/v1.1/docs/user-guide/known-issues.html" ></a>
|
||||
<a class="item" data-title="Kubernetes Issue Tracker on GitHub" href="https://github.com/kubernetes/kubernetes/issues" ></a>
|
||||
<a class="item" data-title="Report a Security Vulnerability" href="http://kubernetes.io/v1.1/docs/reporting-security-issues.html" ></a>
|
||||
<a class="item" data-title="Release Notes" href="https://github.com/kubernetes/kubernetes/releases" ></a>
|
||||
<a class="item" data-title="Release Roadmap" href="http://kubernetes.io/v1.1/docs/roadmap.html" ></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!-- /pi-accordion -->
|
||||
</div> <!-- /docsToc -->
|
||||
<div id="docsContent">
|
||||
<h1 id="this-is-a-test-of-the-documentation-layout-use">This is a test of the documentation layout use</h1>
|
||||
|
||||
<p>Testing version v1.1</p>
|
||||
|
||||
<h2 id="heading-2">Heading 2</h2>
|
||||
|
||||
<p>Test of heading 2 is above</p>
|
||||
|
||||
<h3 id="heading-3">Heading 3</h3>
|
||||
|
||||
<p>Test of heading 3 is above</p>
|
||||
|
||||
<h4 id="heading-4">Heading 4</h4>
|
||||
|
||||
<p>Test of heading 4 is above</p>
|
||||
|
||||
<h1 id="code-tests">Code tests</h1>
|
||||
|
||||
<p>Testing <code>inline code</code> and below is a code example:</p>
|
||||
|
||||
<pre><code>console.log("Hello, world!");
|
||||
</code></pre>
|
||||
|
||||
<p>Okeedoke.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<footer>
|
||||
<main class="light-text">
|
||||
<nav>
|
||||
<a href="/getting-started.html">Getting Started</a>
|
||||
<a href="/docs.html">Documentation</a>
|
||||
<a href="http://blog.kubernetes.io/">Blog</a>
|
||||
<a href="/foobang.html">Community</a>
|
||||
</nav>
|
||||
<div class="social">
|
||||
<a href="https://twitter.com/kubernetesio" class="twitter"><span>twitter</span></a>
|
||||
<a href="https://github.com/kubernetes/kubernetes" class="github"><span>Github</span></a>
|
||||
<a href="http://slack.k8s.io/" class="slack"><span>Slack</span></a>
|
||||
<a href="http://stackoverflow.com/questions/tagged/kubernetes" class="stack-overflow"><span>stackoverflow</span></a>
|
||||
<a href="https://groups.google.com/forum/#!forum/google-containers" class="mailing-list"><span>Mailing List</span></a>
|
||||
<label for="wishField">I wish this page <input type="text" id="wishField" name="wishField" placeholder="made better textfield suggestions"></label>
|
||||
</div>
|
||||
<div class="center">© 2016 Kubernetes</div>
|
||||
</main>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,342 @@
|
|||
---
|
||||
title: "kubectl for docker users"
|
||||
---
|
||||
|
||||
In this doc, we introduce the Kubernetes command line for interacting with the api to docker-cli users. The tool, kubectl, is designed to be familiar to docker-cli users but there are a few necessary differences. Each section of this doc highlights a docker subcommand explains the kubectl equivalent.
|
||||
|
||||
**Table of Contents**
|
||||
|
||||
|
||||
#### docker run
|
||||
|
||||
How do I run an nginx container and expose it to the world? Checkout [kubectl run](kubectl/kubectl_run.html).
|
||||
|
||||
With docker:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
$ docker run -d --restart=always -e DOMAIN=cluster --name nginx-app -p 80:80 nginx
|
||||
a9ec34d9878748d2f33dc20cb25c714ff21da8d40558b45bfaec9955859075d0
|
||||
$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
a9ec34d98787 nginx "nginx -g 'daemon of 2 seconds ago Up 2 seconds 0.0.0.0:80->80/tcp, 443/tcp nginx-app
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
With kubectl:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
# start the pod running nginx
|
||||
$ kubectl run --image=nginx nginx-app --port=80 --env="DOMAIN=cluster"
|
||||
replicationcontroller "nginx-app" created
|
||||
# expose a port through with a service
|
||||
$ kubectl expose rc nginx-app --port=80 --name=nginx-http
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
With kubectl, we create a [replication controller](replication-controller.html) which will make sure that N pods are running nginx (where N is the number of replicas stated in the spec, which defaults to 1). We also create a [service](services.html) with a selector that matches the replication controller's selector. See the [Quick start](quick-start.html) for more information.
|
||||
|
||||
By default images are run in the background, similar to `docker run -d ...`, if you want to run things in the foreground, use:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
kubectl run [-i] [--tty] --attach <name> --image=<image>
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
Unlike `docker run ...`, if `--attach` is specified, we attach to `stdin`, `stdout` and `stderr`, there is no ability to control which streams are attached (`docker -a ...`).
|
||||
|
||||
Because we start a replication controller for your container, it will be restarted if you terminate the attached process (e.g. `ctrl-c`), this is different than `docker run -it`.
|
||||
To destroy the replication controller (and it's pods) you need to run `kubectl delete rc <name>`
|
||||
|
||||
#### docker ps
|
||||
|
||||
How do I list what is currently running? Checkout [kubectl get](kubectl/kubectl_get.html).
|
||||
|
||||
With docker:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
a9ec34d98787 nginx "nginx -g 'daemon of About an hour ago Up About an hour 0.0.0.0:80->80/tcp, 443/tcp nginx-app
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
With kubectl:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
$ kubectl get po
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-app-5jyvm 1/1 Running 0 1h
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
#### docker attach
|
||||
|
||||
How do I attach to a process that is already running in a container? Checkout [kubectl attach](kubectl/kubectl_attach.html)
|
||||
|
||||
With docker:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
a9ec34d98787 nginx "nginx -g 'daemon of 8 minutes ago Up 8 minutes 0.0.0.0:80->80/tcp, 443/tcp nginx-app
|
||||
$ docker attach -it a9ec34d98787
|
||||
...
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
With kubectl:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
$ kubectl get pods
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-app-5jyvm 1/1 Running 0 10m
|
||||
$ kubectl attach -it nginx-app-5jyvm
|
||||
...
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
#### docker exec
|
||||
|
||||
How do I execute a command in a container? Checkout [kubectl exec](kubectl/kubectl_exec.html).
|
||||
|
||||
With docker:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
a9ec34d98787 nginx "nginx -g 'daemon of 8 minutes ago Up 8 minutes 0.0.0.0:80->80/tcp, 443/tcp nginx-app
|
||||
$ docker exec a9ec34d98787 cat /etc/hostname
|
||||
a9ec34d98787
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
With kubectl:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ kubectl get po
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-app-5jyvm 1/1 Running 0 10m
|
||||
$ kubectl exec nginx-app-5jyvm -- cat /etc/hostname
|
||||
nginx-app-5jyvm
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
What about interactive commands?
|
||||
|
||||
|
||||
With docker:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ docker exec -ti a9ec34d98787 /bin/sh
|
||||
|
||||
# exit
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
With kubectl:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ kubectl exec -ti nginx-app-5jyvm -- /bin/sh
|
||||
|
||||
# exit
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
For more information see [Getting into containers](getting-into-containers.html).
|
||||
|
||||
#### docker logs
|
||||
|
||||
How do I follow stdout/stderr of a running process? Checkout [kubectl logs](kubectl/kubectl_logs.html).
|
||||
|
||||
|
||||
With docker:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ docker logs -f a9e
|
||||
192.168.9.1 - - [14/Jul/2015:01:04:02 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-"
|
||||
192.168.9.1 - - [14/Jul/2015:01:04:03 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-"
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
With kubectl:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ kubectl logs -f nginx-app-zibvs
|
||||
10.240.63.110 - - [14/Jul/2015:01:09:01 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
|
||||
10.240.63.110 - - [14/Jul/2015:01:09:02 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
Now's a good time to mention slight difference between pods and containers; by default pods will not terminate if their processes exit. Instead it will restart the process. This is similar to the docker run option `--restart=always` with one major difference. In docker, the output for each invocation of the process is concatenated but for Kubernetes, each invocation is separate. To see the output from a previous run in Kubernetes, do this:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ kubectl logs --previous nginx-app-zibvs
|
||||
10.240.63.110 - - [14/Jul/2015:01:09:01 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
|
||||
10.240.63.110 - - [14/Jul/2015:01:09:02 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.26.0" "-"
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
See [Logging](logging.html) for more information.
|
||||
|
||||
#### docker stop and docker rm
|
||||
|
||||
How do I stop and delete a running process? Checkout [kubectl delete](kubectl/kubectl_delete.html).
|
||||
|
||||
With docker
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
a9ec34d98787 nginx "nginx -g 'daemon of 22 hours ago Up 22 hours 0.0.0.0:80->80/tcp, 443/tcp nginx-app
|
||||
$ docker stop a9ec34d98787
|
||||
a9ec34d98787
|
||||
$ docker rm a9ec34d98787
|
||||
a9ec34d98787
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
With kubectl:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ kubectl get rc nginx-app
|
||||
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
|
||||
nginx-app nginx-app nginx run=nginx-app 1
|
||||
$ kubectl get po
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-app-aualv 1/1 Running 0 16s
|
||||
$ kubectl delete rc nginx-app
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
nginx-app-aualv 1/1 Running 0 16s
|
||||
$ kubectl get po
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
Notice that we don't delete the pod directly. With kubectl we want to delete the replication controller that owns the pod. If we delete the pod directly, the replication controller will recreate the pod.
|
||||
|
||||
#### docker login
|
||||
|
||||
There is no direct analog of `docker login` in kubectl. If you are interested in using Kubernetes with a private registry, see [Using a Private Registry](images.html#using-a-private-registry).
|
||||
|
||||
#### docker version
|
||||
|
||||
How do I get the version of my client and server? Checkout [kubectl version](kubectl/kubectl_version.html).
|
||||
|
||||
With docker:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ docker version
|
||||
Client version: 1.7.0
|
||||
Client API version: 1.19
|
||||
Go version (client): go1.4.2
|
||||
Git commit (client): 0baf609
|
||||
OS/Arch (client): linux/amd64
|
||||
Server version: 1.7.0
|
||||
Server API version: 1.19
|
||||
Go version (server): go1.4.2
|
||||
Git commit (server): 0baf609
|
||||
OS/Arch (server): linux/amd64
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
With kubectl:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ kubectl version
|
||||
Client Version: version.Info{Major:"0", Minor:"20.1", GitVersion:"v0.20.1", GitCommit:"", GitTreeState:"not a git tree"}
|
||||
Server Version: version.Info{Major:"0", Minor:"21+", GitVersion:"v0.21.1-411-g32699e873ae1ca-dirty", GitCommit:"32699e873ae1caa01812e41de7eab28df4358ee4", GitTreeState:"dirty"}
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
#### docker info
|
||||
|
||||
How do I get miscellaneous info about my environment and configuration? Checkout [kubectl cluster-info](kubectl/kubectl_cluster-info.html).
|
||||
|
||||
With docker:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ docker info
|
||||
Containers: 40
|
||||
Images: 168
|
||||
Storage Driver: aufs
|
||||
Root Dir: /usr/local/google/docker/aufs
|
||||
Backing Filesystem: extfs
|
||||
Dirs: 248
|
||||
Dirperm1 Supported: false
|
||||
Execution Driver: native-0.2
|
||||
Logging Driver: json-file
|
||||
Kernel Version: 3.13.0-53-generic
|
||||
Operating System: Ubuntu 14.04.2 LTS
|
||||
CPUs: 12
|
||||
Total Memory: 31.32 GiB
|
||||
Name: k8s-is-fun.mtv.corp.google.com
|
||||
ID: ADUV:GCYR:B3VJ:HMPO:LNPQ:KD5S:YKFQ:76VN:IANZ:7TFV:ZBF4:BYJO
|
||||
WARNING: No swap limit support
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
With kubectl:
|
||||
|
||||
{% highlight console %}
|
||||
{% raw %}
|
||||
|
||||
$ kubectl cluster-info
|
||||
Kubernetes master is running at https://108.59.85.141
|
||||
KubeDNS is running at https://108.59.85.141/api/v1/proxy/namespaces/kube-system/services/kube-dns
|
||||
KubeUI is running at https://108.59.85.141/api/v1/proxy/namespaces/kube-system/services/kube-ui
|
||||
Grafana is running at https://108.59.85.141/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana
|
||||
Heapster is running at https://108.59.85.141/api/v1/proxy/namespaces/kube-system/services/monitoring-heapster
|
||||
InfluxDB is running at https://108.59.85.141/api/v1/proxy/namespaces/kube-system/services/monitoring-influxdb
|
||||
|
||||
{% endraw %}
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||
[]()
|
||||
<!-- END MUNGE: GENERATED_ANALYTICS -->
|
||||
|