Giter Site home page Giter Site logo

complex-k8s's Introduction

Notes

  1. apiVersions
    • v1: componentStatus, configMap, Endpoints, Event, Namespace, Pod
    • apps/v1: ControllerRevision, StatefulSet, Deployment
  2. Server SubTypes
  3. Ports
    • port: The port that ANOTHER container would use to access the service
    • targetPort: port the service is mapping to
    • nodePort: the browser port that you would access (30000-32767) / expose to the outside world
  4. Declarative Deployment
    • Our container setup should look like this, make it happen
  5. Update deployment with latest version of client
    • kubectl set image deployment/client-deployment client=happilymarrieddad/docker-complex-client:v2
  6. Configure docker-cli to talk with Kubernetes local
    • eval $(minikube docker-env)
    • docker system prune
  7. Secrets
    • kubectl create secret generic --from-literal key=value
    • types a) generic - saving some arbitrary key values together b) dockerregistry - setup docker authentication c) tls - store set of tls keys

Kubernetes deployment

  1. PersistentVolumeClaims
    • AccessModes a. ReadWriteOnce - Can only be used by a single node b. ReadOnlyMany - Multiple nodes can read from this c. ReadWriteMany - Can be read and written to by many nodes
  2. ingress-nginx - https://kubernetes.github.io/ingress-nginx/deploy/
  3. Minikube dashboard

Travis CI Automation

  1. Google Cloud

    • Create new IAM user
    • Assign Kubernetes Admin role to account
    • Download json file
    • docker run -it -v $(pwd):/app ruby:2.3 sh
    • gem install travis --no-rdoc --no-ri
    • gem install travis
    • travis login
    • travis encrypt-file service-account.json -r happilymarrieddad/multi-k8s
    • add .enc file to git repository
    • copy to travis.yaml file 'openssl aes-256-cbc -K $encrypted_0c35eebf403c_key -iv $encrypted_0c35eebf403c_iv -in service-account.json.enc -out service-account.json -d'
  2. install helm

  3. use helm to install nginx-ingress

complex-k8s's People

Watchers

James Cloos avatar Nick Kotenberg avatar

Forkers

abhirajsar

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.