Quantcast
Channel: CodeSection,代码区,数据库(综合) - CodeSec
Viewing all articles
Browse latest Browse all 6262

Miles to go ... - Arun Gupta: Kubernetes Cluster on Azure and Expose Couchbase S ...

$
0
0

This blog is part of a multi-partblog series that shows how to run your applicationson Kubernetes. It will use the Couchbase , an open source NoSQL distributed document database, as theDocker container.

Part 1 explained how to start Kubernetes cluster using Vagrant Kubernetes on Vagrant Part 2did the same for Amazon Web Services Kuberneteson AmazonWeb Services Part 3 did the same for Google Cloud Kubernetes on Google Cloud

This fourthpart will show:

How to setup and start theKubernetes cluster onAzure Run Docker container in the Kubernetes cluster Expose Pod on Kubernetes as Service Shutdown the cluster
Miles to go ... - Arun Gupta: Kubernetes Cluster on Azure and Expose Couchbase S ...

Many thanks to @colemickens for helpingmethrough this recipe. This blog content is heavily based upon the instructions at colemickens.github.io/docs/getting-started-guides/azure/ .

Install and Configure Azure CLI

Azure CLI is a command-line interface to develop, deploy and manage Azure applications. This is needed in order to install Kubernetes cluster on Azure.

Install Node:

brewinstallnode ==> Downloadinghttps://homebrew.bintray.com/bottles/node-6.2.0.yosemite.bottle.tar.gz ######################################################################## 100.0% ==> Pouringnode-6.2.0.yosemite.bottle.tar.gz ==> Caveats Pleasenotebydefault onlyEnglishlocalesupportis provided. If youneed fulllocalesupportyoushouldeitherrebuildwithfullicu: `brewreinstallnode --with-full-icu` or addfullicudataatruntimefollowing: https://github.com/nodejs/node/wiki/Intl#using-and-customizing-the-small-icu-build Bashcompletionhasbeeninstalledto: /usr/local/etc/bash_completion.d ==> Summary :beer:/usr/local/Cellar/node/6.2.0: 3,979 files, 40.4M

Install Azure CLI:
npminstall -g azure-cli /usr/local/bin/azure -> /usr/local/lib/node_modules/azure-cli/bin/azure > fibers@1.0.13 install /usr/local/lib/node_modules/azure-cli/node_modules/fibers > nodebuild.js || nodejsbuild.js `darwin-x64-v8-5.0` exists; testing Binaryis fine; exiting /usr/local/lib └─┬ azure-cli@0.10.0 ├─┬ adal-node@0.1.17 │ ├── date-utils@1.2.21 │ ├─┬ jws@3.1.3 │ │ ├─┬ base64url@1.0.6 │ │ │ └─┬ meow@2.0.0 │ │ │├─┬ camelcase-keys@1.0.0 │ │ ││ ├── camelcase@1.2.1 │ │ ││ └── map-obj@1.0.1 │ │ │├─┬ indent-string@1.2.2 │ │ ││ ├── get-stdin@4.0.1 │ │ ││ └─┬ repeating@1.1.3 │ │ ││└── is-finite@1.0.1 │ │ │├── minimist@1.2.0 │ │ │└── object-assign@1.0.0 │ │ └─┬ jwa@1.1.3 │ │├── buffer-equal-constant-time@1.0.1 │ │└─┬ ecdsa-sig-formatter@1.0.5 │ │└── base64-url@1.2.2 │ ├── node-uuid@1.4.1 │ ├── xmldom@0.1.22 │ └── xpath.js@1.0.6 ├── applicationinsights@0.15.12 ├── async@1.4.2 ├── azure-arm-authorization@2.0.0 ├── azure-arm-batch@0.1.0 ├── azure-arm-cdn@0.1.0-preview ├── azure-arm-commerce@0.1.1 ├── azure-arm-compute@0.18.0 ├── azure-arm-datalake-analytics@0.3.2 ├── azure-arm-datalake-store@0.3.0 ├── azure-arm-dns@0.10.1 ├── azure-arm-hdinsight@0.2.0 ├── azure-arm-hdinsight-jobs@0.1.0 ├── azure-arm-insights@0.11.1 ├── azure-arm-network@0.13.1 ├── azure-arm-rediscache@0.2.1 ├── azure-arm-resource@1.4.4-preview ├── azure-arm-storage@0.13.1-preview ├── azure-arm-trafficmanager@0.10.5 ├─┬ azure-arm-website@0.10.0 │ ├─┬ azure-common@0.9.12 │ │ ├─┬ request@2.45.0 │ │ │ ├── aws-sign2@0.5.0 │ │ │ ├── bl@0.9.5 │ │ │ ├── caseless@0.6.0 │ │ │ ├── forever-agent@0.5.2 │ │ │ ├─┬ form-data@0.1.4 │ │ │ │ ├── async@0.9.2 │ │ │ │ └─┬ combined-stream@0.0.7 │ │ │ │└── delayed-stream@0.0.5 │ │ │ ├─┬ hawk@1.1.1 │ │ │ │ ├── boom@0.4.2 │ │ │ │ ├── cryptiles@0.2.2 │ │ │ │ ├── hoek@0.9.1 │ │ │ │ └── sntp@0.2.4 │ │ │ ├─┬ http-signature@0.10.1 │ │ │ │ ├── asn1@0.1.11 │ │ │ │ └── assert-plus@0.1.5 │ │ │ ├── mime-types@1.0.2 │ │ │ ├── node-uuid@1.4.7 │ │ │ ├── oauth-sign@0.4.0 │ │ │ └── qs@1.2.2 │ │ └── xml2js@0.2.7 │ └── moment@2.6.0 ├── azure-asm-compute@0.15.0 ├── azure-asm-hdinsight@0.10.2 ├── azure-asm-mgmt@0.10.1 ├── azure-asm-network@0.11.0 ├── azure-asm-sb@0.10.1 ├── azure-asm-sql@0.10.1 ├── azure-asm-storage@0.10.1 ├── azure-asm-subscription@0.10.1 ├── azure-asm-trafficmanager@0.10.3 ├─┬ azure-asm-website@0.10.1 │ └── moment@2.6.0 ├── azure-batch@0.3.0 ├─┬ azure-common@0.9.16 │ ├── dateformat@1.0.2-1.2.3 │ ├── duplexer@0.1.1 │ ├── envconf@0.0.4 │ ├─┬ request@2.45.0 │ │ ├── aws-sign2@0.5.0 │ │ ├── bl@0.9.5 │ │ ├── caseless@0.6.0 │ │ ├── forever-agent@0.5.2 │ │ ├─┬ form-data@0.1.4 │ │ │ ├── async@0.9.2 │ │ │ ├─┬ combined-stream@0.0.7 │ │ │ │ └── delayed-stream@0.0.5 │ │ │ └── mime@1.2.11 │ │ ├─┬ hawk@1.1.1 │ │ │ ├── boom@0.4.2 │ │ │ ├── cryptiles@0.2.2 │ │ │ ├── hoek@0.9.1 │ │ │ └── sntp@0.2.4 │ │ ├─┬ http-signature@0.10.1 │ │ │ ├── asn1@0.1.11 │ │ │ ├── assert-plus@0.1.5 │ │ │ └── ctype@0.5.3 │ │ ├── mime-types@1.0.2 │ │ ├── node-uuid@1.4.7 │ │ ├── oauth-sign@0.4.0 │ │ └── qs@1.2.2 │ ├── validator@3.22.2 │ └── xml2js@0.2.7 ├── azure-gallery@2.0.0-pre.18 ├── azure-graph@0.1.1 ├─┬ azure-keyvault@0.10.1 │ └── node-uuid@1.4.7 ├─┬ azure-monitoring@0.10.2 │ └── moment@2.6.0 ├─┬ azure-storage@0.7.0 │ ├── browserify-mime@1.2.9 │ ├── extend@1.2.1 │ ├── node-uuid@1.4.7 │ ├─┬ readable-stream@2.0.6 │ │ ├── isarray@1.0.0 │ │ ├── process-nextick-args@1.0.7 │ │ └── util-deprecate@1.0.2 │ ├─┬ request@2.57.0 │ │ ├── aws-sign2@0.5.0 │ │ ├─┬ bl@0.9.5 │ │ │ └─┬ readable-stream@1.0.34 │ │ │└── isarray@0.0.1 │ │ ├── caseless@0.10.0 │ │ ├─┬ form-data@0.2.0 │ │ │ ├── async@0.9.2 │ │ │ └─┬ combined-stream@0.0.7 │ │ │└── delayed-stream@0.0.5 │ │ ├─┬ har-validator@1.8.0 │ │ │ ├── bluebird@2.10.2 │ │ │ └── commander@2.9.0 │ │ ├── hawk@2.3.1 │ │ ├─┬ http-signature@0.11.0 │ │ │ ├── asn1@0.1.11 │ │ │ └── assert-plus@0.1.5 │ │ ├─┬ mime-types@2.0.14 │ │ │ └── mime-db@1.12.0 │ │ └── qs@3.1.0 │ ├── validator@3.22.2 │ └── xml2js@0.2.7 ├─┬ caller-id@0.1.0 │ └── stack-trace@0.0.9 ├── colors@0.6.2 ├─┬ commander@1.0.4 │ └── keypress@0.1.0 ├── easy-table@0.0.1 ├─┬ event-stream@3.1.5 │ ├── from@0.1.3 │ ├── map-stream@0.1.0 │ ├── pause-stream@0.0.11 │ ├── split@0.2.10 │ └── stream-combiner@0.0.4 ├── eyes@0.1.8 ├── fast-json-patch@0.5.6 ├── github@0.1.6 ├── js2xmlparser@1.0.0 ├── jsrsasign@4.8.2 ├─┬ kuduscript@1.0.6 │ ├── commander@1.1.1 │ └── streamline@0.4.11 ├── moment@2.13.0 ├── ms-rest@1.14.2 ├─┬ ms-rest-azure@1.14.2 │ ├── async@0.2.7 │ └── uuid@2.0.1 ├── node-forge@0.6.23 ├── node-uuid@1.2.0 ├── number-is-nan@1.0.0 ├── omelette@0.1.0 ├─┬ openssl-wrapper@0.2.1 │ ├── debug@0.7.4 │ └── q@0.9.7 ├─┬ read@1.0.7 │ └── mute-stream@0.0.6 ├─┬ readable-stream@1.0.34 │ ├── core-util-is@1.0.2 │ ├── inherits@2.0.1 │ ├── isarray@0.0.1 │ └── string_decoder@0.10.31 ├─┬ request@2.69.0 │ ├── aws-sign2@0.6.0 │ ├── aws4@1.4.1 │ ├─┬ bl@1.0.3 │ │ └─┬ readable-stream@2.0.6 │ │└──

Viewing all articles
Browse latest Browse all 6262

Latest Images

Trending Articles