Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
manifests python workshop Jul 16, 2019
myapp python workshop Jul 16, 2019
slides commit to deploy Jul 10, 2019
README.md python workshop Jul 16, 2019

README.md

Commit to Deploy

  • setup

    # start minikube
    minikube start --vm-driver kvm2 --insecure-registry 10.0.0.0/24
    minikube addons enable ingress
    
    # you need to replace the service ip
    minikube ip
    find -type f -print0 | xargs -0 sed 's/192.168.39.43/192.168.39.43/g' -i
    
    # apply manifests
    kc apply -f manifests/
    kc get pods -w
    
    # hack to make in cluster registry reachable
    minikube ssh -- bash -c "whoami; echo $(kc get service registry -o jsonpath="{.spec.clusterIP}") registry.default.svc \
      | sudo tee /etc/hosts"
    
    # get urls
    kc get ingress
  • setup tiller

helm init --tiller-namespace=myapp --upgrade
helm init --tiller-namespace=myapp-staging --upgrade
  • create git user

  • create git repo

  • add secrets to drone

    kc get secrets --all-namespaces -o json \
      | jq -r '.items|.[]|select(.metadata.name|test("default-token.*"))|select(.metadata.namespace|test("myapp.*")) |"\(.metadata.namespace) \(.data.token|@base64d)"'
    
  • add repo in drone

  • put myapp in gitrepo

You can’t perform that action at this time.