Comments (6)
我这边没这种环境, 你有什么建议的方案?
from charts.
charts/charts/dify/templates/_helpers.tpl
Lines 64 to 66 in e33e9f0
from charts.
这样?
如果你在 values.yaml 文件中定义了多个相同名称的环境变量,你可以使用 Helm 的 dict 函数将它们合并为一个单独的 env 列表。
# templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
spec:
template:
spec:
containers:
- name: {{ .Release.Name }}
env:
{{- $envs := dict }}
{{- range $index, $env := .Values.env }}
{{- $_ := set $envs $env.name $env }}
{{- end }}
{{- range $key, $value := $envs }}
- name: {{ $key }}
value: {{ $value.value }}
{{- end }}
from charts.
我觉得有点复杂, 我上面提的方案如何呢? 就是加一个 global.port 的value, 如果有就在里面渲染就行
from charts.
也可以
from charts.
提个 pr 吧, 谢谢~ 你顺便也可以验证下
from charts.
Related Issues (17)
- 使用douban helm 安装后 archery应用一直会连127.0.0.1:3306 HOT 6
- 对接ldap并导入源库后,报字段sql_instance.mode无法识别,且源表中也没这个字段
- redis连接异常 HOT 2
- 无法指定存储引擎
- 数据库配置内部或者外部的,启动pod时候都会连接127.0.0.1这个地址
- 还有外部的redis全系统搜索关键字,只有在values.yaml配置出现过一次 HOT 1
- codecov: Failed to upload report from CI HOT 1
- init failed after installed by helm in k8s HOT 1
- Archery 对接 LDAP HOT 2
- An error occurred during login to the console HOT 5
- 考虑升级下dify charts中的minio、redis等的版本否 HOT 4
- When using an external minio S3 bucket as storage, an error will be reported when executing db upgrade: HOT 8
- [BUG] what is default email and password when first login dify? HOT 1
- [FEATURE] Dify - support changing STORAGE_TYPE env value HOT 4
- Dify: add a common label to values file HOT 1
- [GoInception] Failed to install goinception pod in my k8s in China region HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.