当我部署以下内容时,出现此错误:
{{- if .Values.front.ingress.enabled -}}
{{- $fullName := include "marketplace.fullname" . -}}
{{- $ingressPaths := .Values.front.ingress.paths -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}-{{ .Values.environment }}-front
labels:
app.kubernetes.io/name: {{ include "marketplace.name" . }}-{{ .Values.front.name }}
helm.sh/chart: {{ include "marketplace.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}-{{ .Values.front.name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.front.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.front.ingress.tls }}
tls:
{{- range .Values.front.ingress.tls }}
- hosts: …
Run Code Online (Sandbox Code Playgroud) 我正在运行 kubernetes v1.11.5,并且正在为每个命名空间安装带有分蘖部署的 helm。让我们专注于单个命名空间。这是分蘖服务帐户配置:
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: marketplace-int
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: tiller-manager
namespace: marketplace-int
rules:
- apiGroups:
- ""
- extensions
- apps
- rbac.authorization.k8s.io
- roles.rbac.authorization.k8s.io
- authorization.k8s.io
resources: ["*"]
verbs: ["*"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: tiller-binding
namespace: marketplace-int
subjects:
- kind: ServiceAccount
name: tiller
namespace: marketplace-int
roleRef:
kind: Role
name: tiller-manager
apiGroup: rbac.authorization.k8s.io
Run Code Online (Sandbox Code Playgroud)
当我尝试部署图表时,出现此错误:
Error: release citest failed: roles.rbac.authorization.k8s.io "marketplace-int-role-ns-admin" is forbidden:
attempt to grant …
Run Code Online (Sandbox Code Playgroud) 当我尝试获取有关副本的信息时,我收到以下错误:
rep0:PRIMARY> rs.printReplicationInfo()
2015-05-19T13:30:29.231+0200 error: {
"$err" : "not authorized for query on local.system.namespaces",
"code" : 13
} at src/mongo/shell/query.js:131
Run Code Online (Sandbox Code Playgroud)
我试图与以下两个用户执行该命令:
[
{
"_id" : "admin.siteRootAdmin",
"user" : "siteRootAdmin",
"db" : "admin",
"roles" : [
{
"role" : "root",
"db" : "admin"
}
]
},
{
"_id" : "admin.mongoadmin",
"user" : "mongoadmin",
"db" : "admin",
"roles" : [
{
"role" : "userAdminAnyDatabase",
"db" : "admin"
},
{
"role" : "dbOwner",
"db" : "admin"
},
{
"role" : "clusterAdmin",
"db" : …
Run Code Online (Sandbox Code Playgroud) 我使用的是 S3 兼容后端,它不支持 MultipartUpload。
我有一个奇怪的情况,其中某些服务器当我上传文件时,它完成正常,但在其他服务器中 boto3 自动尝试使用 MultipartUpload 上传文件。我尝试上传的文件与用于测试相同后端、区域/租户、存储桶等的完全相同的文件...
如文档所示,MultipartUpload 在需要时会自动启用:
- 当文件超过特定大小阈值时自动切换到分段传输
以下是自动切换到MultipartUpload时的一些日志:
自动切换到MultipartUpload时记录:
DEBUG:botocore.hooks:Event request-created.s3.CreateMultipartUpload: calling handler <function enable_upload_callbacks at 0x2b001b8>
DEBUG:botocore.endpoint:Sending http request: <PreparedRequest [POST]>
INFO:botocore.vendored.requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): mytenant.mys3backend.cloud.corp
DEBUG:botocore.vendored.requests.packages.urllib3.connectionpool:"POST /cassandra/samplefile.tgz?uploads HTTP/1.1" 501 None
DEBUG:botocore.parsers:Response headers: {'date': 'Fri, 18 Dec 2015 09:12:48 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/xml;charset=UTF-8', 'server': 'HCP V7.2.0.26'}
DEBUG:botocore.parsers:Response body:
<?xml version='1.0' encoding='UTF-8'?>
<Error>
<Code>NotImplemented</Code>
<Message>The request requires functionality that is not implemented in the current release</Message>
<RequestId>1450429968948</RequestId>
<HostId>aGRpLmJvc3RoY3AuY2xvdWQuY29ycDoyNg==</HostId>
</Error>
DEBUG:botocore.hooks:Event needs-retry.s3.CreateMultipartUpload: …
Run Code Online (Sandbox Code Playgroud) 我通过grok镜像填充了以下estructure:
/var/opt/git/git-data/repositories
/organization1
/teamA
/repo1
/repo2
/teamB
/repo3
/repo4
/organizationN
/teamN
/repoN
Run Code Online (Sandbox Code Playgroud)
git instaweb对于单个存储库工作正常,但是如果我要自动git instaweb在“存储库”目录下显示所有存储库,则它不起作用:
fatal: Not a git repository (or any parent up to mount point /var/opt/git/git-data)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Run Code Online (Sandbox Code Playgroud)
这是正确的,因为在父目录中没有存储库,但是如果我git instaweb
从/var/opt/git/git-data/repositories/organization/teamA/
那里执行,则会遇到相同的错误,并且该目录内是裸存储库所在的位置(每个存储库的repoN.git目录)
我设置了GIT_DISCOVERY_ACROSS_FILESYSTEM
无结果的环境变量。我还设置/etc/gitweb.conf
了以下条目:our $projectroot = "/var/opt/git/git-data/repositories";
正如我在该项目的文档中所读到的那样,git instaweb可以服务于多个存储库,而不仅仅是一个,而且它可以在特定目录下查找存储库。
我究竟做错了什么?
使用BeautifulSoul和Python,我希望find_all
所有tr
匹配给定类属性的项目包含多个名称,如下所示:
<tr class="admin-bookings-table-row bookings-history-row paid ">
Run Code Online (Sandbox Code Playgroud)
我已经尝试了几种匹配该类的方法.正则表达式,通配符,但我总是得到一个空列表.
有没有办法使用正则表达式,通配符或如何匹配此类?
还有就是贴了同样的问题在这里没有答案.
python ×2
rbac ×2
amazon-s3 ×1
boto3 ×1
git ×1
go-templates ×1
instaweb ×1
kubernetes ×1
mongodb ×1
permissions ×1
python-2.7 ×1
replicaset ×1