You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: getting_started/bootstrap.rst
+37-25
Original file line number
Diff line number
Diff line change
@@ -20,16 +20,15 @@ Deployment configuration
20
20
~~~~~~~~~~~~~~~~~~~~~~~~
21
21
First we need to initialize a deploy configuration directory by running::
22
22
23
-
kn init my_deployment
23
+
kn init openstack my_deployment
24
24
25
-
The configuration directory contains a new SSH key pair for your deployments, and some `Terraform <http://terraform.io/>`_ configuration templates that we need to fill in.
25
+
The configuration directory contains a new SSH key pair for your deployments, and a `Terraform <http://terraform.io/>`_ configuration template that we need to fill in.
26
26
27
-
Locate into ``my_deployment`` and create a ``terraform.tfvars`` configuration file, copying the OpenStack template::
27
+
Locate into ``my_deployment`` :
28
28
29
29
cd my_deployment
30
-
cp terraform.tfvars.os-template terraform.tfvars
31
30
32
-
In this configuration file you will need to set at least:
31
+
In the configuration file ``terraform.tfvars`` you will need to set at least:
33
32
34
33
**Cluster configuration**
35
34
@@ -90,15 +89,19 @@ Deploy KubeNow
90
89
~~~~~~~~~~~~~~
91
90
Once you are done with your settings you are ready deploy your cluster running::
92
91
93
-
kn apply openstack
92
+
kn apply
94
93
95
94
The first time you are going to deploy it will take longer, since the KubeNow image needs to be imported. Future deployments will be considerably faster, since the image will be already present in your user space.
96
95
97
96
To check that your cluster is up and running you can run::
98
97
99
98
kn kubectl get nodes
100
99
101
-
As long as you are in the ``my_deployment`` directory you can use ``kubectl`` over SSH to control Kubernetes. If everything went well, now you are ready to :doc:`deploy your first application <first-app>`.
100
+
As long as you are in the ``my_deployment`` directory you can use ``kubectl`` over SSH to control Kubernetes. If you want to open an interactive SSH terminal onto the master then you can use the ``kn ssh`` command::
101
+
102
+
kn ssh
103
+
104
+
If everything went well, now you are ready to :doc:`deploy your first application <first-app>`.
102
105
103
106
Deploy on Google Cloud (GCE)
104
107
----------------------------
@@ -115,16 +118,15 @@ Deployment configuration
115
118
~~~~~~~~~~~~~~~~~~~~~~~~
116
119
First we need to initialize a deploy configuration directory by running::
117
120
118
-
kn init my_deployment
121
+
kn init gce my_deployment
119
122
120
-
The configuration directory contains a new SSH key pair for your deployments, and some `Terraform <http://terraform.io/>`_ configuration templates that we need to fill in.
123
+
The configuration directory contains a new SSH key pair for your deployments, and a `Terraform <http://terraform.io/>`_ configuration template that we need to fill in.
121
124
122
-
Locate into into ``my_deployment`` and create a ``terraform.tfvars`` configuration file, copying the GCE template::
125
+
Locate into ``my_deployment`` :
123
126
124
127
cd my_deployment
125
-
cp terraform.tfvars.gce-template terraform.tfvars
126
128
127
-
In this configuration file you will need to set at least:
129
+
In the configuration file ``terraform.tfvars`` you will need to set at least:
128
130
129
131
**Cluster configuration**
130
132
@@ -163,7 +165,11 @@ To check that your cluster is up and running you can run::
163
165
164
166
kn kubectl get nodes
165
167
166
-
As long as you are in the ``my_deployment`` directory you can use ``kubectl`` over SSH to control Kubernetes. If everything went well, now you are ready to :doc:`deploy your first application <first-app>`.
168
+
As long as you are in the ``my_deployment`` directory you can use ``kubectl`` over SSH to control Kubernetes. If you want to open an interactive SSH terminal onto the master then you can use the ``kn ssh`` command::
169
+
170
+
kn ssh
171
+
172
+
If everything went well, now you are ready to :doc:`deploy your first application <first-app>`.
167
173
168
174
Deploy on Amazon Web Services (AWS)
169
175
-----------------------------------
@@ -179,16 +185,15 @@ Deployment configuration
179
185
~~~~~~~~~~~~~~~~~~~~~~~~
180
186
First we need to initialize a deploy configuration directory by running::
181
187
182
-
kn init my_deployment
188
+
kn init aws my_deployment
183
189
184
-
The configuration directory contains a new SSH key pair for your deployments, and some `Terraform <http://terraform.io/>`_ configuration templates that we need to fill in.
190
+
The configuration directory contains a new SSH key pair for your deployments, and a `Terraform <http://terraform.io/>`_ configuration template that we need to fill in.
185
191
186
-
Locate into ``my_deployment`` and create a ``terraform.tfvars`` configuration file, copying the AWS template::
192
+
Locate into ``my_deployment`` :
187
193
188
194
cd my_deployment
189
-
cp terraform.tfvars.aws-template terraform.tfvars
190
195
191
-
In this configuration file you will need to set at least:
196
+
In the configuration file ``terraform.tfvars`` you will need to set at least:
192
197
193
198
**Cluster configuration**
194
199
@@ -223,7 +228,11 @@ To check that your cluster is up and running you can run::
223
228
224
229
kn kubectl get nodes
225
230
226
-
As long as you are in the ``my_deployment`` directory you can use ``kubectl`` over SSH to control Kubernetes. If everything went well, now you are ready to :doc:`deploy your first application <first-app>`.
231
+
As long as you are in the ``my_deployment`` directory you can use ``kubectl`` over SSH to control Kubernetes. If you want to open an interactive SSH terminal onto the master then you can use the ``kn ssh`` command::
232
+
233
+
kn ssh
234
+
235
+
If everything went well, now you are ready to :doc:`deploy your first application <first-app>`.
227
236
228
237
Deploy on Microsoft Azure
229
238
----------------------------
@@ -239,16 +248,15 @@ Deployment configuration
239
248
~~~~~~~~~~~~~~~~~~~~~~~~
240
249
First we need to initialize a deploy configuration directory by running::
241
250
242
-
kn init my_deployment
251
+
kn init azure my_deployment
243
252
244
-
The configuration directory contains a new SSH key pair for your deployments, and some `Terraform <http://terraform.io/>`_ configuration templates that we need to fill in.
253
+
The configuration directory contains a new SSH key pair for your deployments, and a `Terraform <http://terraform.io/>`_ configuration template that we need to fill in.
245
254
246
-
Locate into into ``my_deployment`` and create a ``terraform.tfvars`` configuration file, copying the Azure template::
In this configuration file you will need to set at least:
259
+
In the configuration file ``terraform.tfvars`` you will need to set at least:
252
260
253
261
**Cluster configuration**
254
262
@@ -283,4 +291,8 @@ To check that your cluster is up and running you can run::
283
291
284
292
kn kubectl get nodes
285
293
286
-
As long as you are in the ``my_deployment`` directory you can use ``kubectl`` over SSH to control Kubernetes. If everything went well, now you are ready to :doc:`deploy your first application <first-app>`.
294
+
As long as you are in the ``my_deployment`` directory you can use ``kubectl`` over SSH to control Kubernetes. If you want to open an interactive SSH terminal onto the master then you can use the ``kn ssh`` command::
295
+
296
+
kn ssh
297
+
298
+
If everything went well, now you are ready to :doc:`deploy your first application <first-app>`.
Copy file name to clipboardexpand all lines: getting_started/clean-up.rst
+1-3
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,6 @@ Cloud resources are typically pay-per-use, hence it is good to release them when
5
5
6
6
To release the resources, please run::
7
7
8
-
kn destroy <cloud-provider>
9
-
10
-
``<cloud-provider>`` can be "openstack", "gce", "aws" or "azure".
8
+
kn destroy
11
9
12
10
**Warning:** if you delete the cluster configuration directory (``my_deployment``) the cluster status will be lost, and you'll have to delete the resources manually.
0 commit comments