Giter Club home page Giter Club logo

cka-lab-setup's Introduction

Create 3 EC2 instance for a 3 node K8s cluster using TF <= v0.12.30.

https://github.com/sandervanvugt/cka.git

CentOS 7: ami-0affd4508a5d2481b (us-east-1) need to subscribe via marketplace prior to use.

  1. setup-docker
  2. setup-kubetools
  3. Ensure ports 10250 and 6443 are allowed for kube system. (SG)
  4. Ensure port 6783 are allowed for weave. (SG)

Commands

alias ll="ls -al --color=auto"
alias k="kubectl"
alias kd="kuebectl describe"
alias kg="kubectl get"
alias kgp="kubectl get po"
alias kapi="kubectl api-resources"
alias kc="kubectl create"
alias ke="kubectl explain"
alias ksn="kubectl config set-context --current --namespace"

k run redis123 --image=redis --generator=run-pod/v1 --dry-run -o yaml > redis123.yaml
k create deploy nginx2 --image=nginx --dry-run -o yaml > myfile.yaml
k explain pod
k explain pod.metadata
k get secrets/default-token-lqwk4 -o jsonpath='{.data.token}'
k get po/redis -o jsonpath='{.spec.containers[].image}' # All image names from containers[] array.
k edit po three-pods #Edit pod(s) directly
k logs -n kube-system weave-net-spdv9 weave #Logs from a specific (weave) container in a POD (weave-net-spdv9)
k get all -l 'env=prod' --show-labels
journalctl -fu kubelet
systemctl status kubelet --no-pager --full
kg clusterroles -A | wc -l
openssl x509 -in/etc/kubernetes/pki/etcd/server.crt --text --noout

cka-lab-setup's People

Contributors

umairishaq avatar

Watchers

James Cloos 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.