Vohra | Kubernetes Microservices with Docker | E-Book | www.sack.de
E-Book

E-Book, Englisch, 440 Seiten

Vohra Kubernetes Microservices with Docker


1. ed
ISBN: 978-1-4842-1907-2
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

E-Book, Englisch, 440 Seiten

ISBN: 978-1-4842-1907-2
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



This book on Kubernetes, the  container cluster manager, discusses all aspects of using Kubernetes in today's complex big data and enterprise applications, including Docker containers.
Starting with installing Kubernetes on a single node, the book introduces Kubernetes with a simple Hello example and discusses using environment variables in Kubernetes. 
Next, the book discusses using Kubernetes with all major groups of technologies such as relational databases, NoSQL databases, and in the Apache Hadoop ecosystem.
The book concludes with using multi container Pods and installing Kubernetes on a multi node cluster. No other book on using Kubernetes - beyond simple introduction - is available in the market.

What You Will LearnHow to install Kubernetes on a single node
How to install Kubernetes on a multi-node cluster
How to set environment variables
How to create a multi-container pods using Docker
How to use volumes
How to use Kubernetes with Apache Hadoop Ecosystem
How to use Kubernetes with NoSQL Databases
How to use Kubernetes with RDBMS
Who This Book Is ForApplication Developers including Apache Hadoop Developers, Database developers and NoSQL Developers.
 



Deepak Vohra is a consultant and a principal member of the NuBean-dot-com software company. Deepak is a Sun-certified Java programmer and Web component developer. He has worked in the fields of XML, Java programming, and Java EE for over five years. Deepak is the coauthor of Pro XML Development with Java Technology (Apress, 2006). Deepak is also the author of the JDBC 4.0 and Oracle JDeveloper for J2EE Development, Processing XML Documents with Oracle JDeveloper 11g, EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g, and Java EE Development in Eclipse IDE (Packthing). He also served as the technical reviewer on WebLogic: The Definitive Guide (O'Reilly Media, 2004) and Ruby Programming for the Absolute Beginner (Cengage Learning PTR, 2007).

Vohra Kubernetes Microservices with Docker jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents at a Glance;4
2;Contents;6
3;About the Author;18
4;About the Technical Reviewer;20
5;Foreword;22
6;Part I: Getting Started;23
6.1;Chapter 1: Installing Kubernetes Using Docker;24
6.1.1;Setting the Environment;25
6.1.2;Installing Docker;26
6.1.3;Installing Kubernetes;36
6.1.4;Starting etcd;44
6.1.5;Starting Kubernetes Master;46
6.1.6;Starting Service Proxy;49
6.1.7;Listing the Kubernetes Docker Containers;50
6.1.8;Installing kubectl;53
6.1.9;Listing Services;56
6.1.10;Listing Nodes;57
6.1.11;Testing the Kubernetes Installation;57
6.1.12;Summary;59
6.2;Chapter 2: Hello Kubernetes;60
6.2.1;Overview;60
6.2.1.1;What Is a Node?;60
6.2.1.2;What Is a Cluster?;61
6.2.1.3;What Is a Pod?;61
6.2.1.4;What Is a Service?;61
6.2.1.5;What Is a Replication Controller?;61
6.2.1.6;What Is a Label?;62
6.2.1.7;What Is a Selector?;62
6.2.1.8;What Is a Name?;62
6.2.1.9;What Is a Namespace?;62
6.2.1.10;What Is a Volume?;62
6.2.1.11;Why Kubernetes?;62
6.2.2;Setting the Environment;63
6.2.3;Creating an Application Imperatively;64
6.2.3.1;Creating a Service;65
6.2.3.2;Describing a Pod;67
6.2.3.3;Invoking the Hello-World Application;68
6.2.3.4;Scaling the Application;69
6.2.3.5;Deleting a Replication Controller;73
6.2.3.6;Deleting a Service;74
6.2.4;Creating an Application Declaratively;74
6.2.4.1;Creating a Pod Definition;75
6.2.4.2;Creating a Service Definition;79
6.2.4.3;Creating a Replication Controller Definition;82
6.2.4.4;Invoking the Hello-World Application;85
6.2.4.5;Scaling the Application;89
6.2.5;Using JSON for the Resource Definitions;91
6.2.6;Summary;97
6.3;Chapter 3: Using Custom Commands and Environment Variables;98
6.3.1;Setting the Environment;98
6.3.2;The ENTRYPOINT and CMD Instructions;99
6.3.3;The Command and Args Fields in a Pod Definition;100
6.3.4;Environment Variables;101
6.3.5;Using the Default ENTRYPOINT and CMD from a Docker Image;102
6.3.6;Overriding Both the ENTRYPOINT and CMD;105
6.3.7;Specifying both the Executable and the Parameters in the Command Mapping;108
6.3.8;Specifying Both the Executable and the Parameters in the Args Mapping;111
6.3.9;Summary;114
7;Part II: Relational Databases;115
7.1;Chapter 4: Using MySQL Database;116
7.1.1;Setting the Environment;116
7.1.2;Creating a Service;118
7.1.3;Creating a Replication Controller;119
7.1.4;Listing the Pods;123
7.1.5;Listing Logs;123
7.1.6;Describing the Service;125
7.1.7;Starting an Interactive Shell;126
7.1.8;Starting the MySQL CLI;128
7.1.9;Creating a Database Table;129
7.1.10;Exiting the MySQL CLI and Interactive Shell;130
7.1.11;Scaling the Replicas;130
7.1.12;Deleting the Replication Controller;132
7.1.13;Summary;133
7.2;Chapter 5: Using PostgreSQL Database;134
7.2.1;Setting the Environment;134
7.2.2;Creating a PostgreSQL Cluster Declaratively;136
7.2.2.1;Creating a Service;136
7.2.2.2;Creating a Replication Controller;138
7.2.2.3;Getting the Pods;142
7.2.2.4;Starting an Interactive Command Shell;142
7.2.2.5;Starting the PostgreSQL SQL Terminal;143
7.2.2.6;Creating a Database Table;144
7.2.2.7;Exiting the Interactive Command Shell;145
7.2.2.8;Scaling the PostgreSQL Cluster;146
7.2.2.9;Listing the Logs;147
7.2.2.10;Deleting the Replication Controller;149
7.2.2.11;Stopping the Service;150
7.2.3;Creating a PostgreSQL Cluster Imperatively;150
7.2.3.1;Creating a Replication Controller;151
7.2.3.2;Getting the Pods;151
7.2.3.3;Creating a Service;152
7.2.3.4;Creating a Database Table;153
7.2.3.5;Scaling the PostgreSQL Cluster;156
7.2.3.6;Deleting the Replication Controller;157
7.2.3.7;Stopping the Service;158
7.2.4;Summary;158
7.3;Chapter 6: Using Oracle Database;159
7.3.1;Setting the Environment;159
7.3.2;Creating an Oracle Database Instance Imperatively;160
7.3.2.1;Listing Logs;162
7.3.2.2;Creating a Service;163
7.3.2.3;Scaling the Database;164
7.3.2.4;Deleting the Replication Controller and Service;165
7.3.3;Creating an Oracle Database Instance Declaratively;166
7.3.3.1;Creating a Pod;166
7.3.3.2;Creating a Service;168
7.3.3.3;Creating a Replication Controller;171
7.3.3.4;Keeping the Replication Level;174
7.3.3.5;Scaling the Database;176
7.3.3.6;Starting the Interactive Shell;177
7.3.3.7;Connecting to Database;178
7.3.3.8;Creating a User;179
7.3.3.9;Creating a Database Table;180
7.3.3.10;Exiting the Interactive Shell;181
7.3.4;Summary;181
8;Part III: NoSQL Database;182
8.1;Chapter 7: Using MongoDB Database;183
8.1.1;Setting the Environment;183
8.1.2;Creating a MongoDB Cluster Declaratively;185
8.1.2.1;Creating a Service;185
8.1.2.2;Creating a Replication Controller;189
8.1.2.3;Creating a Volume;192
8.1.2.4;Listing the Logs;194
8.1.2.5;Starting the Interactive Shell for Docker Container;196
8.1.2.6;Starting a Mongo Shell;198
8.1.2.7;Creating a Database;198
8.1.2.8;Creating a Collection;199
8.1.2.9;Adding Documents;200
8.1.2.10;Finding Documents;202
8.1.2.11;Finding a Single Document;202
8.1.2.12;Finding Specific Fields in a Single Document;203
8.1.2.13;Dropping a Collection;204
8.1.2.14;Exiting Mongo Shell and Interactive Shell;204
8.1.2.15;Scaling the Cluster;204
8.1.2.16;Deleting the Replication Controller;205
8.1.2.17;Deleting the Service;206
8.1.2.18;Using a Host Port;206
8.1.3;Creating a MongoDB Cluster Imperatively;210
8.1.3.1;Creating a Replication Controller;210
8.1.3.2;Listing the Pods;211
8.1.3.3;Listing the Logs;212
8.1.3.4;Creating a Service;213
8.1.3.5;Scaling the Cluster;214
8.1.3.6;Deleting the Service and Replication Controller;216
8.1.4;Summary;216
8.2;Chapter 8: Using Apache Cassandra Database;217
8.2.1;Setting the Environment;217
8.2.2;Creating a Cassandra Cluster Declaratively;219
8.2.2.1;Creating a Service;219
8.2.2.2;Creating a Replication Controller;222
8.2.2.3;Scaling the Database;227
8.2.2.4;Describing the Pod;228
8.2.2.5;Starting an Interactive Shell;229
8.2.2.6;Starting the CQL Shell;231
8.2.2.7;Creating a Keyspace;231
8.2.2.8;Altering a Keyspace;231
8.2.2.9;Using a Keyspace;232
8.2.2.10;Creating a Table;232
8.2.2.11;Deleting from a Table;233
8.2.2.12;Truncating a Table;234
8.2.2.13;Dropping a Table and Keyspace;234
8.2.2.14;Creating a Volume;235
8.2.3;Creating a Cassandra Cluster Imperatively;241
8.2.3.1;Creating a Replication Controller;241
8.2.3.2;Creating a Service;243
8.2.3.3;Scaling the Database;244
8.2.3.4;Deleting the Replication Controller and Service;245
8.2.4;Summary;246
8.3;Chapter 9: Using Couchbase;247
8.3.1;Setting the Environment;247
8.3.2;Creating a Couchbase Cluster Declaratively;250
8.3.2.1;Creating a Pod;250
8.3.2.2;Creating a Service;253
8.3.2.3;Creating a Replication Controller;255
8.3.2.4;Listing the Pods;259
8.3.2.5;Listing the Logs;259
8.3.2.6;Describing the Service;260
8.3.2.7;Listing the Endpoints;260
8.3.2.8;Setting Port Forwarding;260
8.3.2.9;Logging into Couchbase Web Console;262
8.3.2.10;Configuring Couchbase Server;263
8.3.2.11;Adding Documents;271
8.3.2.12;Starting an Interactive Shell;280
8.3.2.13;Using the cbtransfer Tool;281
8.3.3;Creating a Couchbase Cluster Imperatively;282
8.3.3.1;Creating a Replication Controller;282
8.3.3.2;Listing the Pods;282
8.3.3.3;Creating a Service;284
8.3.3.4;Scaling the Cluster;285
8.3.3.5;Keeping the Replication Level;286
8.3.3.6;Setting Port Forwarding;288
8.3.3.7;Logging in to Couchbase Admin Console;288
8.3.4;Summary;289
9;Part IV: Apache Hadoop Ecosystem;290
9.1;Chapter 10: Using Apache Hadoop Ecosystem;291
9.1.1;Setting the Environment;291
9.1.2;Creating an Apache Hadoop Cluster Declaratively;292
9.1.2.1;Creating a Service;293
9.1.2.2;Creating a Replication Controller;295
9.1.2.3;Listing the Pods;297
9.1.2.4;Listing Logs;298
9.1.2.5;Scaling a Cluster;299
9.1.2.6;Starting an Interactive Shell;300
9.1.2.7;Running a MapReduce Application;301
9.1.3;Running Hive;310
9.1.4;Running HBase;316
9.1.5;Deleting the Replication Controller and Service;321
9.1.6;Creating an Apache Hadoop Cluster Imperatively;321
9.1.6.1;Creating a Replication Controller;321
9.1.6.2;Listing the Pods;322
9.1.6.3;Scaling a Cluster;323
9.1.6.4;Creating a Service;323
9.1.6.5;Starting an Interactive Shell;324
9.1.7;Summary;325
9.2;Chapter 11: Using Apache Solr;326
9.2.1;Setting the Environment;327
9.2.2;Creating a Service;328
9.2.3;Listing Service Endpoints;330
9.2.4;Describing the Service;330
9.2.5;Creating a Replication Controller;331
9.2.6;Listing the Pods;334
9.2.7;Describing a Replication Controller;335
9.2.8;Listing the Logs;336
9.2.9;Starting an Interactive Shell;338
9.2.10;Creating a Solr Core;341
9.2.11;Indexing Documents;342
9.2.12;Accessing Solr on Command Line with a REST Client;345
9.2.13;Setting Port Forwarding;350
9.2.14;Accessing Solr in Admin Console;351
9.2.15;Scaling the Cluster;357
9.2.16;Summary;358
9.3;Chapter 12: Using Apache Kafka;359
9.3.1;Setting the Environment;360
9.3.2;Modifying the Docker Image;361
9.3.3;Creating a Service;367
9.3.4;Creating a Replication Controller;370
9.3.5;Listing the Pods;373
9.3.6;Describing a Pod;374
9.3.7;Starting an Interactive Shell;375
9.3.8;Starting the Kafka Server;376
9.3.9;Creating a Topic;378
9.3.10;Starting a Kafka Producer;379
9.3.11;Starting a Kafka Consumer;379
9.3.12;Producing and Consuming Messages;379
9.3.13;Scaling the Cluster;380
9.3.14;Deleting Replication Controller and Service;382
9.3.15;Summary;383
10;Part V: Multi Containers and Nodes;384
10.1;Chapter 13: Creating a Multi-Container Pod;385
10.1.1;How to find Number of Containers in a Pod?;386
10.1.2;Types of Applications Using a Multi-Container Pod;386
10.1.3;Setting the Environment;387
10.1.4;Creating a Service;388
10.1.5;Describing a Service;389
10.1.6;Creating a Replication Container;390
10.1.7;Listing the Pods;392
10.1.8;Listing the Docker Containers;393
10.1.9;Describing the Service after Creating Replication Controller;394
10.1.10;Invoking the Hello World Application on Command Line;395
10.1.11;Starting the Interactive Shell;396
10.1.12;Starting PostgreSQL Shell;397
10.1.13;Setting Port Forwarding;397
10.1.14;Opening the Hello World Application in a Browser;398
10.1.15;Scaling the Cluster;399
10.1.15.1;Listing the Docker Containers;401
10.1.15.2;Describing the Service after Scaling;402
10.1.15.3;Setting Port Forwarding;402
10.1.15.4;Opening the Hello World Application in a Browser;403
10.1.15.5;Invoking the Hello World Application from Command Line;404
10.1.15.6;Deleting the Replication Controller;406
10.1.15.7;Deleting the Service;407
10.1.16;Summary;407
10.2;Chapter 14: Installing Kubernetes on a Multi-Node Cluster;408
10.2.1;Components of a Multi-Node Cluster;409
10.2.2;Setting the Environment;409
10.2.3;Installing the Master Node;411
10.2.3.1;Setting Up Flanneld and etcd;411
10.2.3.1.1;Setting up Bootstrap Instance of Docker;411
10.2.3.1.2;Setting Up etcd;412
10.2.3.1.3;Setting Up Flannel;413
10.2.3.2;Starting the Kubernetes Master;418
10.2.3.3;Running the Service Proxy;420
10.2.4;Testing the One-Node Cluster;421
10.2.5;Adding a Worker Node;421
10.2.5.1;Exporting the Master IP;421
10.2.5.2;Setting Up Flanneld;422
10.2.5.3;Starting Up Kubernetes on Worker Node;427
10.2.5.4;Running the Service Proxy;428
10.2.6;Testing the Kubernetes Cluster;428
10.2.7;Running an Application on the Cluster;428
10.2.8;Exposing the Application as a Service;429
10.2.9;Testing the Application in a Browser;431
10.2.10;Scaling the Application;432
10.2.11;Summary;436
11;Index;437



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.