sokoow / kube-desktop Goto Github PK
View Code? Open in Web Editor NEWWanna 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.
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.
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"}
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.