docker-archive / deploykit

A toolkit for creating and managing declarative, self-healing infrastructure.
Apache License 2.0
2.25k stars 264 forks source link

VMwScript example to deploy a three node Kubernetes cluster w/flannel #908

Closed thebsdbox closed 5 years ago

thebsdbox commented 5 years ago

The following section should either be populated or removed, and replaced with either runtime flags or environment variables:

        "vcenterURL" :"https://u:p@vc.url",
        "datacentre" : "",
        "datastore":"",
        "network" : "",
        "host" : "esxi0xxxxx",

Signed-off-by: Dan Finneran daniel.finneran@gmail.com

thebsdbox commented 5 years ago

Confirmed the platform is all happy too:

[root@k8manager001 ~]# kubectl create deployment nginx --image=nginx:stable
deployment.apps/nginx created
[root@k8manager001 ~]# kubectl get pod
NAME                     READY     STATUS    RESTARTS   AGE
nginx-7fcf68769f-g786g   1/1       Running   0          40s
[root@k8manager001 ~]# kubectl create service nodeport nginx --tcp=80:80
service/nginx created
[root@k8manager001 ~]# kubectl get svc
NAME         TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE
kubernetes   ClusterIP   10.96.0.1       <none>        443/TCP        27m
nginx        NodePort    10.103.66.200   <none>        80:32126/TCP   6s
[root@k8manager001 ~]# curl k8worker001.fnnrn.me:32126
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>

<...> 
codecov[bot] commented 5 years ago

Codecov Report

Merging #908 into master will increase coverage by 0.02%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #908      +/-   ##
==========================================
+ Coverage    48.4%   48.42%   +0.02%     
==========================================
  Files          84       84              
  Lines        7859     7859              
==========================================
+ Hits         3804     3806       +2     
+ Misses       3744     3743       -1     
+ Partials      311      310       -1
Impacted Files Coverage Δ
pkg/types/spec.go 60.17% <0%> (+1.76%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 11c0751...062dddf. Read the comment docs.

GordonTheTurtle commented 5 years ago

Please sign your commits following these rules: https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work The easiest way to do this is to amend the last commit:

$ git clone -b "vmw_k8s" git@github.com:thebsdbox/infrakit.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354051080
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.