我正在尝试从我的云提供商(IBM 云私有)配置/取消配置服务实例/绑定,目前,存在一个错误,如果该服务未在 ICP 中取消配置,则会导致我的 ICP 环境中的孤立服务实例即使使用强制选项,我也无法删除。他们提供了以下解决方法:
kubectl edit ServiceInstance <service-instance-name>
kubectl edit ServiceBinding <service-binding-name>
Run Code Online (Sandbox Code Playgroud)
然后删除该行:
...
finalizers:
- kubernetes-incubator/service-catalog
...
Run Code Online (Sandbox Code Playgroud)
并且孤立服务实例/绑定将被正确删除。我想知道如何使用 bash cli(实时编辑 + 删除行 + 保存 + 退出)或任何其他方式自动执行此过程。
I'm looking for a possible way to reference the secrets in my deployment.yaml (1 liner)
Currently I'm using the
containers:
- name: {{ template "myapp.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: Always
env:
- name: COUCHDB_USER
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-secrets
key: COUCHDB_USER
- name: COUCHDB_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Release.Name }}-secrets
key: COUCHDB_PASSWORD
Run Code Online (Sandbox Code Playgroud)
With the minimal modification possible, I want to achieve something like this:
containers:
- name: {{ template "myapp.name" . }}
image: "{{ …Run Code Online (Sandbox Code Playgroud)