Giter VIP home page Giter VIP logo

sokoow / kube-desktop Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 3.0 21.55 MB

Wanna run a full CI-CD stack on a single kube node, on any infrastructure? Also a good lesson on how to integrate Terraform, Ansible and Helm together into an appliance.

Shell 1.36% Smarty 0.23% Makefile 0.18% HCL 3.25% Dockerfile 0.14% M4 0.04% PHP 30.94% HTML 5.72% CSS 1.81% Perl 0.15% JavaScript 55.72% Ruby 0.01% Go 0.47%
bash ci-cd docker firefox k8s kubernetes yaml

kube-desktop's People

Contributors

deepsourcebot avatar irth avatar sokoow avatar wojciech12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

wojciech12 irth

kube-desktop's Issues

kubectl command line API changed, causing vagrant up to fail

I'm using Vagrant 2.2.3 on a mostly up-to-date Arch Linux install.

vagrant-up output

(...)
kube1: serviceaccount/traefik-ingress-controller created
kube1: daemonset.extensions/traefik-ingress-controller created
kube1: service/traefik-ingress-service created
kube1: 
kube1: Running inside Vagrant
kube1: Error: unknown flag: --apiserver-advertise-address
kube1: Usage:
kube1: 
kube1: Flags:
kube1:   -h, --help   help for phase
kube1: 
kube1: Global Flags:
kube1:       --log-file string   If non-empty, use this log file
kube1:       --rootfs string     [EXPERIMENTAL] The path to the 'real' host root filesystem.
kube1:       --skip-headers      If true, avoid header prefixes in the log messages
kube1:   -v, --v Level           log level for V logs
kube1: 
kube1: error: unknown flag: --apiserver-advertise-address

Location of the erroneous line:

$ ag apiserver-advertise-address
install-kubeadm.sh
87:sudo kubeadm alpha phase certs all --apiserver-advertise-address=0.0.0.0 --apiserver-cert-extra-sans=127.0.0.1

kubeadm version:

vagrant@kube-desktop:~$ kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-01T20:05:53Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}

create-examples.sh fails to run

vagrant@kube-desktop:/vagrant/examples$ ./create-examples.sh 
Preloading gitadmin user to Gogs
SET
INSERT 0 1
You must specify a repository to clone.

usage: git clone [<options>] [--] <repo> [<dir>]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --progress            force progress reporting
    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --mirror              create a mirror repository (implies bare)
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as shared repository
    --recursive           initialize submodules in the clone
    --recurse-submodules  initialize submodules in the clone
    --template <template-directory>
                          directory from which templates will be used
    --reference <repo>    reference repository
    --dissociate          use --reference only while cloning
    -o, --origin <name>   use <name> instead of 'origin' to track upstream
    -b, --branch <branch>
                          checkout <branch> instead of the remote's HEAD
    -u, --upload-pack <path>
                          path to git-upload-pack on the remote
    --depth <depth>       create a shallow clone of that depth
    --single-branch       clone only one branch, HEAD or --branch
    --separate-git-dir <gitdir>
                          separate git dir from working tree
    -c, --config <key=value>
                          set config inside the new repository


Cloning example repo failed

The Gogs API doesn't allow HTTP basic auth except for obtaining tokens, that's why the repo creation fails, and the script ends up executing git clone without an argument.

# this fails
curl -H "Content-Type: application/json" -X POST -u $GIT_CREDS -d '{ "name": "example-golang-app", "description": "Our first real app", "private": false, "owner": "gitadmin"}' $GIT_SERVER/api/v1/user/repos

curl -H "Content-Type: application/json" -u $GIT_CREDS $GIT_SERVER/api/v1/user/repos

# this returns 401 unauthorized, and the variable ends up being empty
CLONE_URL=$(curl -H "Content-Type: application/json" -s -u gitadmin:gitadmin $GIT_SERVER/api/v1/user/repos | jq .[0].clone_url | tr -d "\"")

One way to fix it would be to preload an API access token when preloading the gitadmin user. I'll look into that and maybe send a pull request.

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.