-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from QingCloudAppcenter/k8s-1.7
K8s 1.7
- Loading branch information
Showing
146 changed files
with
1,909 additions
and
6,010 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[template] | ||
src = "k8s/fluentbit-extend.conf.tmpl" | ||
dest = "/data/kubernetes/fluentbit/extend.conf" | ||
keys = [ | ||
"/env", | ||
] | ||
reload_cmd = "/opt/kubernetes/script/reload-fluentbit.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[template] | ||
src = "k8s/kubeconfig.tmpl" | ||
dest = "/root/.kube/config" | ||
keys = [ | ||
"/", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[template] | ||
src = "k8s/qingcloud-hostnic-cni.yaml.tmpl" | ||
dest = "/opt/kubernetes/k8s/addons/hostnic/qingcloud-hostnic-cni.yaml" | ||
keys = [ | ||
"/env", | ||
] | ||
reload_cmd = "/opt/kubernetes/script/reload-hostnic.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
qy_access_key_id: "{{getv "/env/access_key_id"}}" | ||
qy_secret_access_key: "{{getv "/env/secret_access_key"}}" | ||
zone: "{{getv "/cluster/zone"}}" | ||
{{$kube_log_level := getv "/env/kube_log_level"}} | ||
log_level: {{if gt $kube_log_level "1"}}debug{{else}}info{{end}} | ||
{{- $kube_log_level := getv "/env/kube_log_level" }} | ||
log_level: {{if gt $kube_log_level "1" }}debug{{else}}{{if eq $kube_log_level "0"}}warn{{else}}info{{end}}{{end}} | ||
connection_retries: 1 | ||
connection_timeout: 5 | ||
connection_timeout: 5 | ||
host: "api.ks.qingcloud.com" | ||
port: 80 | ||
protocol: "http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
{ | ||
"live-restore": true, | ||
"graph": "/data/var/lib/docker", | ||
"storage-driver": "overlay2", | ||
{{$registries := getv "/env/insecure-registries"}} | ||
{{if ne $registries ""}} | ||
"insecure-registries": {{split $registries " "|toJson}}, | ||
{{end}} | ||
"ipv6": false | ||
{{$mirrors := getv "/env/registry-mirrors"}} | ||
{{if ne $mirrors ""}} | ||
"registry-mirrors": {{split $mirrors " "|toJson}}, | ||
{{end}} | ||
"storage-driver": "overlay2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{- $server := getv "/env/fluent_forward_server" -}} | ||
{{- if ne $server "" -}} | ||
{{- $parts := split $server ":" -}} | ||
[OUTPUT] | ||
Name forward | ||
Match * | ||
Host {{index $parts 0}} | ||
Port {{index $parts 1}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
...image/confd/templates/k8s/interfaces.tmpl → confd/templates/k8s/interfaces.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
{{$role := getv "/host/role" -}} | ||
{{if eq $role "client" -}} | ||
auto lo | ||
iface lo inet loopback | ||
{{$masters := getvs "/hosts/master/*/ip"}} | ||
{{$masters := getvs "/hosts/master/*/ip" -}} | ||
allow-hotplug eth0 | ||
iface eth0 inet dhcp | ||
dns-search default.svc.cluster.local svc.cluster.local cluster.local | ||
dns-nameservers 10.96.0.10 | ||
up route add -net 10.96.0.0 netmask 255.255.0.0 gw {{index $masters 0}} | ||
up route add -net 10.96.0.0 netmask 255.255.0.0 gw {{index $masters 0 -}} | ||
{{- else -}} | ||
auto lo | ||
iface lo inet loopback | ||
|
||
allow-hotplug eth0 | ||
iface eth0 inet dhcp | ||
{{end -}} |
2 changes: 1 addition & 1 deletion
2
...confd/templates/k8s/init_token.metad.tmpl → confd/templates/k8s/kubeconfig.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{range gets "/hosts/master/*/token"}}{{$data := json .Value}}{{$data.init_token}}{{end}} | ||
{{range gets "/hosts/master/*/token"}}{{$data := json .Value}}{{base64Decode $data.adminconf}}{{end}} |
Oops, something went wrong.