Kubernetes AWS EBS超时等待卷状态(Kubernetes AWS EBS Timeout waiting for volume state)
如果我创建此pod:
apiVersion: v1 kind: Pod metadata: name: dsm-manager spec: containers: - name: dsm-manager image: ****** imagePullPolicy: Always command: - /sbin/init volumeMounts: - mountPath: /srv/project/DSMManager/snapshots name: dsm-snapshot-storage volumes: - name: dsm-snapshot-storage awsElasticBlockStore: volumeID: aws://us-west-2b/vol-43e44482 fsType: ext4 imagePullSecrets: - name: dockerregistrykey
它总是有效,但如果我删除它并重新创建它就会陷入状态'CreatingContainer'。 看事件产量:
- 无法为pod“dsm-manager_default”装入卷:超时等待卷状态
- 错误同步窗格,跳过:超时等待卷状态如果我删除pod并重新创建它,无论我做什么都会发生同样的事情。 但是,如果我将卷附加到某个实例,然后通过aws cli将其分离,则创建它可以找到的pod。 我想知道音量是否没有正确分离。 现在我只是有一个奇怪的工作流程,将卷附加到随机实例,然后在更新容器图像时将其分离
If I create this pod:
apiVersion: v1 kind: Pod metadata: name: dsm-manager spec: containers: - name: dsm-manager image: ****** imagePullPolicy: Always command: - /sbin/init volumeMounts: - mountPath: /srv/project/DSMManager/snapshots name: dsm-snapshot-storage volumes: - name: dsm-snapshot-storage awsElasticBlockStore: volumeID: aws://us-west-2b/vol-43e44482 fsType: ext4 imagePullSecrets: - name: dockerregistrykey
It always works, but if I delete it and re-create it it gets stuck with status 'CreatingContainer'. Looking in the events yields:
-Unable to mount volumes for pod "dsm-manager_default": Timeout waiting for volume state
-Error syncing pod, skipping: Timeout waiting for volume stateIf I delete the pod and re-create it the same thing happens no matter what I do. However if I attach the volume to some instance and then detach it through the aws cli, then create the pod it works find. I'm wondering if the volume isn't being detached properly. For now I just have this odd work flow of attaching the volume to a random instance then detaching it while updating the container image
原文:https://stackoverflow.com/questions/32894930
最满意答案
您无法访问RewriteRule的
test string
中的查询字符串。 它需要这样处理。RewriteEngine On RewriteCond %{QUERY_STRING} ID=(.+) RewriteRule ^page.asp$ pageid%1.asp [L]
让我知道这是如何工作的。
You can't access a query string in the
test string
of RewriteRule. It needs to be handled this way.RewriteEngine On RewriteCond %{QUERY_STRING} ID=(.+) RewriteRule ^page.asp$ pageid%1.asp [L]
Let me know how this works out.
相关问答
更多-
带参数的静态页面重定向(static page redirect with parameter)[2022-04-17]
您无法访问RewriteRule的test string中的查询字符串。 它需要这样处理。 RewriteEngine On RewriteCond %{QUERY_STRING} ID=(.+) RewriteRule ^page.asp$ pageid%1.asp [L] 让我知道这是如何工作的。 You can't access a query string in the test string of RewriteRule. It needs to be handled this way. Rew ... -
我可以将本地静态html页面重定向到在线资源吗?(Can I redirect a local static html page to an online resource?)[2023-07-02]
当然,您可以使用html元标记来指示浏览器重定向到另一个页面。 把它放在你的 相关问题: 如何从.html页面重定向? Sure, you can use html meta tag to instruct the browser to redirect to another page. Put this in your您可以通过告知您希望附加可下载文件的响应来实现此目的。 然后,您可以简单地编写您想要下载的内容。 这是一个例子: @ResponseStatus(HttpStatus.OK) @RequestMapping(value = "/myredirect", method = RequestMethod.GET, produces = MediaType.APPLICATION_OCTET_STREAM_VALUE) public void downloadFile(HttpServletResponse res ...如果您在Servlet中请求fileid并且在fileid == null时重定向用户该怎么办? 就像是: Object fileid = request.getParameter("fileid"); if(fileid == null) { ReuqestDispatcher dispatcher = request.getRequestDispatcher("whatever.jsp"); dispatcher.forward(request, response); } What if y ...Perl :: CGI重定向参数并在新页面中访问它(Perl::CGI Redirect with a Parameter and Access it in the New Page)[2022-12-23]
你忘记了引号: print $cgi->redirect( -uri=>"http://www.yoursite.com/new_page.pl?user_name=$username", -status=>303, #... ); 另外,请记住在调用重定向之前转义用户名: my $username = escape( $cgi->param('user_name') ); You forgot the quotes: print $cgi->r ...我无法在Twitter的API文档中找到这样的页面,所以我最终使用主页twitter.com进行重定向。 一切正常。 I haven't been able to find such a page in Twitter's API docs, so I ended up using the main page twitter.com for the redirect. Everything works fine.如何使用GET参数将HTTP请求重定向到静态文件(How to redirect a HTTP Request to a static File with the GET Parameter)[2022-01-05]
apache重写规则是正则表达式,你编写的规则匹配整个字符串。 写一个匹配/ u /之后的东西的规则,这样: RewriteRule ^u/([^/]*)$ /u/profile.php?u=$1 [L] The apache rewrite rules are regular expressions, and the one you wrote matches a whole string. Write a rule that matches stuff after /u/ thus so: Rewri ...在应用控制器中 before_filter :store_location def store_location unless params[:controller] == "devise/sessions" url = #calculate the url here based on a params[:token] which you passed in session[:user_return_to] = url end end def sto ...在2.2.0中,Seam忽略导航定义中的任何节点。 请注意,异常处理程序是在初始化应用程序时创建的,而不是在发生错误时动态创建的。 另请注意,当会话过期时,会话所持有的数据(包括会话数据)也会过期,因此当发生此特定错误时,您将无法使用任何该数据。 另一方面, view-id值是ValueExpression ,因此您可以直接在视图ID中使用表达式。 In 2.2.0, Seam ignores any nodes within an 这是Response.Redirect的常见问题。 你可以设置 Response.Headers.Add("Location", "/Script.aspx?param1=something#anchor"); Response.Status = "301 Moved Permanently"; //or whatever status code you want to deliver, 302 or 307 are standard for Response.Redirect(...) 或者您可以将其作 ...相关文章
更多- Amazon Web Services(AWS)概述
- 高负载低延迟:动态算法+Hadoop+AWS+NoSQL解析
- [翻译][Trident] Trident state原理
- 《Java 2 图形设计卷I:AWT》(Graphic Java 1.2 Mastering the JFC Volume I:AWT )扫描版[PDF]
- 《Java 2 图形设计卷II:SWING》(Graphic Java 2 Mastering the JFC Volume 2:SWING 3rd Edition )扫描版[PDF]
- Storm可靠性及事务性相关设计: Acker及Trident State
- Hadoop Namenode不能启动(dfs/name is in an inconsistent state)
- 应用程序扩展性实现的十宗罪
- android Failed to install .apk on device 'emulator-5554': timeout的解决方案
- 解决Hadoop namenode启动 **dfs/name is in an inconsistent state的问题
最新问答
更多- 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
- 如何通过引用返回对象?(How is returning an object by reference possible?)
- 矩阵如何存储在内存中?(How are matrices stored in memory?)
- 每个请求的Java新会话?(Java New Session For Each Request?)
- css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
- 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
- xcode语法颜色编码解释?(xcode syntax color coding explained?)
- 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
- 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
- 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
- 西安哪有PLC可控制编程的培训
- 在Entity Framework中选择基类(Select base class in Entity Framework)
- 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
- 电脑二级VF有什么用
- Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
- 金华英语角.
- 手机软件如何制作
- 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
- 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
- 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
- Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
- 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
- python的访问器方法有哪些
- DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
- 在Ruby中对组合进行排序(Sorting a combination in Ruby)
- 网站开发的流程?
- 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
- 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
- 透明度错误IE11(Transparency bug IE11)
- linux的基本操作命令。。。