mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Merge pull request #23250 from huggsboson/patch-1
Automatic merge from submit-queue Use kube-system namespace Fixes #23153. Sadly, kube-system isn't automatically created, so people need to make sure to create it in their turnup scripts. Also after creating kube-system it can take 10+ seconds for master and proxy to show up. I tested the equivalent of these changes locally, but not these changes themselves as I don't have a dev/build env up, so please read carefully and maybe try them out!
This commit is contained in:
commit
1cd93cb1d6
@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"metadata": {"name":"k8s-etcd"},
|
"metadata": {
|
||||||
|
"name": "k8s-etcd",
|
||||||
|
"namespace": "kube-system"
|
||||||
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"hostNetwork": true,
|
"hostNetwork": true,
|
||||||
"containers": [
|
"containers": [
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"metadata": {"name":"k8s-proxy"},
|
"metadata": {
|
||||||
|
"name": "k8s-proxy",
|
||||||
|
"namespace": "kube-system"
|
||||||
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"hostNetwork": true,
|
"hostNetwork": true,
|
||||||
"containers": [
|
"containers": [
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"metadata": {"name":"k8s-master"},
|
"metadata": {
|
||||||
|
"name": "k8s-master",
|
||||||
|
"namespace": "kube-system"
|
||||||
|
},
|
||||||
"spec":{
|
"spec":{
|
||||||
"hostNetwork": true,
|
"hostNetwork": true,
|
||||||
"containers":[
|
"containers":[
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
"kind": "Pod",
|
"kind": "Pod",
|
||||||
"metadata": {"name":"k8s-master"},
|
"metadata": {
|
||||||
|
"name": "k8s-master",
|
||||||
|
"namespace": "kube-system"
|
||||||
|
},
|
||||||
"spec":{
|
"spec":{
|
||||||
"hostNetwork": true,
|
"hostNetwork": true,
|
||||||
"containers":[
|
"containers":[
|
||||||
|
@ -20,7 +20,7 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
K8S_VERSION=${K8S_VERSION:-"1.2.0-alpha.7"}
|
K8S_VERSION=${K8S_VERSION:-"1.2.0"}
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
--volume=/:/rootfs:ro \
|
--volume=/:/rootfs:ro \
|
||||||
@ -41,3 +41,9 @@ docker run \
|
|||||||
--cluster-dns=10.0.0.10 \
|
--cluster-dns=10.0.0.10 \
|
||||||
--cluster-domain=cluster.local \
|
--cluster-domain=cluster.local \
|
||||||
--allow-privileged=true --v=2
|
--allow-privileged=true --v=2
|
||||||
|
|
||||||
|
until $(kubectl cluster-info &> /dev/null); do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
kubectl create ns kube-system
|
||||||
|
Loading…
Reference in New Issue
Block a user