Giter VIP home page Giter VIP logo

alicloud-ack-demo's Introduction

alicloud-ack-demo

Sample architecture

Install kubectl (Kubernetes Client tool):

The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs. For more information including a complete list of kubectl operations, see the kubectl reference documentation.

kubectl is installable on a variety of Linux platforms, macOS and Windows. Find your preferred operating system below.

Install kubectl on Linux

Install kubectl on macOS

Install kubectl on Windows

Provision Alibaba Cloud Infrastructure using Terraform

clone source code from this repo to provision the infrastructure on Alibaba Cloud using terraform configuration:

git clone https://github.com/knpubscripts/alicloud-terraform.git

Or visit the repo link to see the details: https://github.com/knpubscripts/alicloud-terraform

Wait about 10-15 minutes to ACK cluster created, go to: Cluster Information > Connection Information > Public Access (tab) > Copy the content to $HOME/.kube/config on your local computer.

Then you can use the kubectl to interact and control ACK cluster from your computer.

kubectl apply commands in order

    kubectl apply -f mongo-secret.yaml
    kubectl apply -f mongo.yaml
    kubectl apply -f mongo-configmap.yaml
    kubectl apply -f mongo-express.yaml
    kubectl apply -f nginx-ingress.yaml

Create DNS record:

Get the external IP of nginx-ingress, go to your dns management system, point record A of your domain or sub-domain to this IP.

kubectl get commands

    kubectl get pod
    kubectl get pod --watch
    kubectl get pod -o wide
    kubectl get service
    kubectl get secret
    kubectl get all | grep mongodb

kubectl debugging commands

    kubectl describe pod mongodb-deployment-xxxxxx
    kubectl describe service mongodb-service
    kubectl logs mongo-express-xxxxxx

Using Helm Chart to deploy application

Install helm

Install Helmify tool to help automatically convert manifest yamls files to helm chart file

go to source code folder and run command:

awk 'FNR==1 && NR!=1 {print "---"}{print}' ./*.yaml | helmify ackdemo

Now we have our helm chart, just run helm install command to deploy the application.

helm install ackdemo ./ackdemo

alicloud-ack-demo's People

Contributors

knguyenvn avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.