kubenetes中的Google容器引擎状态集1.5.1似乎无法正常工作

时间:2016-12-29 16:30:09

标签: google-kubernetes-engine

我一直在等待使用GCE的StatefulSet功能。他们的文档声称它现在可以在1.5.1中使用,但它似乎根本不起作用。

据我所知,apps / v1alpha1 api仍然存在,但PetSet不再存在,但是没有启用包含StatefulSet的apps / v1beta1。

文档说它是,但它不是。

  

PetSet的名称在1.5版中已更改为StatefulSet。 StatefulSet   是常规Container Engine集群中提供的测试版功能   Alpha集群中不再提供PetSet。

https://cloud.google.com/container-engine/docs/alpha-clusters

这是我尝试在apps / v1beta1中根据kubernetes文档使用StatefulSet时出现的错误。 (与apps / v1alpha1中的PetSet一样,它也无法使用apps / v1alpha1)

  

API版本" apps / v1beta1"不受支持,仅支持API版本   ["应用程序/ v1alpha1" " componentconfig / v1alpha1" " V1"   " authentication.k8s.io/v1beta1" " authorization.k8s.io/v1beta1"   "自动缩放/ V1" "批次/ V1" "批次/ v2alpha1"   " certificates.k8s.io/v1alpha1" "扩展/ v1beta1" "策略/ v1alpha1"   "联合会/ v1beta1" " storage.k8s.io/v1beta1"   " rbac.authorization.k8s.io/v1alpha1"];如果你选择忽略这些   错误,请使用--validate = false

关闭验证

我是否正确阅读此内容,因为他们从未为kubernetes 1.5.1启用StatefulSet功能?

1 个答案:

答案 0 :(得分:6)

很可能您在客户端和服务器上运行的Kubernetes版本不匹配。由于<head> <style> </style> <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.1/knockout-min.js'></script> <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js'></script> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> </head> <body> <div class="container"> <div class="row"> <h3>My Recipes</h3> <ul data-bind="foreach: recipes"> <li> <!-- http://stackoverflow.com/questions/13054878/knockout-js-how-to-access-index-in-handler-function --> <a data-bind="click: $root.populate_recipe"> <span data-bind="text: $data.name + ' id: ' + $data.id"></span> </a> <a data-bind="click: $root.delete_recipe">Delete Recipe</a> </li> </ul> </div> <div class="row"> <br><br> <div class="col-md-2 col-md-offset-2"> <span class="label-text">Recipe Name:</span> </div> <div class="col-md-2"> <input type="text" data-bind="value: name" maxlength="250" class="recipeSetupText" /> </div> <div class="col-md-4"> <span class="label-text">Brew Method:</span> <select data-bind="options: brew_methods, value: brew_method"></select> </div> </div> <div class="row"> <!-- http://stackoverflow.com/questions/8354975/how-can-i-limit-possible-inputs-in-a-html5-number-element --> <div class="col-md-2 col-md-offset-2"> <span class="label-text" id="batch-size-label">Batch Size:</span> </div> <div class="col-md-2"> <input type="number" data-bind="value: batch_size" style="width: 35px" /> <span class="unit">gallons</span> </div> <div class="col-md-4"> <span class="label-text">Style:</span> <select data-bind="options: styles_data, optionsValue: 'value', optionsText: 'display', value: current_style"></select> </div> </div> <div class="row"> <div class="col-md-4 col-md-offset-2"> <span class="label-text" id="boil-time-label">Boil Time:</span> <input type="number" data-bind="value: boil_time" style="width: 60px" /> <span class="unit">(minutes)</span> </div> </div> <h2>Current price: <span data-bind="text: current_price"></span></h2> <div> <h2>Fermentables</h2> <div data-bind="foreach: fermentables"> <select id="fermentable-variety-select" style="width:325px" data-bind="if: true, value: catalog_id"> <option value="-"> - </option> <!-- ko foreach: fermentables_options --> <optgroup data-bind="attr: {label: category}"> <!-- ko foreach: fermentables --> <option data-bind="value: $data.catalog_id, text: $data.name + ' -- ' + $data.price.toFixed(2)"></option> <!-- /ko --> </optgroup> <!-- /ko --> </select> <label>Milling preference: </label> <select data-bind="options: $root.milling_preferences, value: milling_preference"></select> <a href="#" data-bind="click: $root.removeFermentable, visible: $root.fermentables.countVisible() > 1"> Delete </a> <br><br> </div> <input data-bind="click: addFermentable" type="button" value="Add Fermentable"/> </div> <div class="row"> <h2 class="">Yeast</h2> <div data-bind="foreach: yeasts"> <span>Yeast Brand Filter:</span> <select data-bind="options: yeast_categories, value: current_filter" id="yeast-brand-select"> </select> <br/> <span>Yeast Variety:</span> <select id="yeast-variety-select" style="width:325px" data-bind="if: true, value: catalog_id"> <option value="-"> - </option> <!-- ko foreach: yeast_groups_individual --> <optgroup data-bind="attr: {label: category}"> <!-- ko foreach: yeasts --> <option data-bind="value: $data.catalog_id, text: $data.name + ' -- ' + $data.price.toFixed(2)"></option> <!-- /ko --> </optgroup> <!-- /ko --> </select> <a href="#" data-bind="click: $root.removeYeast, visible: $root.yeasts.countVisible() > 1">Delete</a> <br><br> </div> <br> <input data-bind="click: addYeast" type="button" value="Add Yeast"/> </div> <div class="row"> <h2 class="">Hops</h2> <div data-bind='foreach: hops'> <select id="hops-variety-select" style="width:325px" data-bind="if: true, value: catalog_id"> <option value="-"> - </option> <!-- ko foreach: hops_options --> <optgroup data-bind="attr: {label: category}"> <!-- ko foreach: hops --> <option data-bind="value: $data.catalog_id, text: $data.name + ' -- ' + $data.price.toFixed(2)"></option> <!-- /ko --> </optgroup> <!-- /ko --> </select> <label>Amount:</label> <input type="number" data-bind="value: amount" maxlength="6"> oz Time: <input type="text" data-bind="value: time" > Min. Use: <select data-bind="options: $root.hops_uses, value: use"></select> <a href="#" data-bind="click: function() { $root.removeItem($data, $root.hops) }, visible: $root.hops.countVisible() > 1">Delete</a> <br><br> </div> <br> <input data-bind="click: addHop" type="button" value="Add Hop" /> </div> <br> <textarea data-bind="value: notes" id="notes-input" placeholder="Write any extra notes here..." style="resize: both;"></textarea> <p> <button data-bind="click: saveRecipeData">Save recipe</button> </p> </div> <script src='index.js' type='text/javascript'></script> </body> gcloud - 安装的怪癖,我发现了类似的内容,即尽管已更新,仍会在kubectl上运行。运行1.4.x并手动更新平台的二进制文件。

两端都需要kubectl version