随着容器,Kuberenetes,12 Factor等的增加,在开发,分期和生产中复制相同的环境变得更加容易.但是,域名约定似乎没有共同标准.
据我所知,有两种方法:
*.dev.foobar.tld*.staging.foobar.tld*.foobar.tld*.foobar-dev.tld*.foobar-staging.tld*.foobar.tld我可以用两种方法看到起伏,但我很好奇普通的实践是什么.
作为附注,Cloudflare不会为您发放子子域的证书(例如*.stage.foobar.tld).
我已经阅读了一些这些项目的介绍,但仍然无法清楚地了解Kubernetes和Flynn/Deis之间的区别.有人可以帮忙吗?
我正在尝试使用Deis设置数据库.我知道这是可能的,但似乎没有任何关于如何设置ENV变量的文档.我如何设置说MongoDB或Cassandra docker容器然后部署它并让我的deis应用程序使用它?
我刚刚使用AKS在azure上安装了我的kubernetes集群.我没有安装任何东西,我注意到'tunnelfront'pod正在运行:
我试图找出这个pod的用途以及为什么它在我的集群上运行,找不到它存在的原因.我使用kubectl来描述pod:
Name: tunnelfront-597b4868b8-8rz4w
Namespace: kube-system
Node: aks-agentpool-22029027-0/10.240.0.5
Start Time: Mon, 07 May 2018 19:51:22 +0200
Labels: component=tunnel
pod-template-hash=1536042464
Annotations: kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"kube-system","name":"tunnelfront-597b4868b8","uid":"d46dab68-449e-11e8-961c-0a58a...
Status: Running
IP: 10.244.1.72
Controlled By: ReplicaSet/tunnelfront-597b4868b8
Containers:
tunnel-front:
Container ID: docker://a69b8d6dcaef7253d41d44fbd57fd776a0dfbf70dbbbb8303a691bebab169c26
Image: dockerio.azureedge.net/deis/hcp-tunnel-front:v1.9.2-v3.0.3
Image ID: docker-pullable://dockerio.azureedge.net/deis/hcp-tunnel-front@sha256:378db6f97778c6d86de94f72573a97975cd7b5ff6f1f02c1618616329fd94f1f
Port: <none>
Host Port: <none>
State: Running
Started: Tue, 15 May 2018 09:40:10 +0200
Last State: Terminated
Reason: Error
Exit Code: 137
Started: Mon, 07 May 2018 19:56:15 +0200
Finished: Tue, 15 May 2018 09:40:09 +0200
Ready: True
Restart Count: 1
Liveness: …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用运行命令VSTS扩展名对VSTS版本定义执行helm命令,但问题是它无法在我配置的自定义生成代理上找到kubeconfig文件。我认为这是因为定义的构建步骤在单独的过程中运行。当我跑步
kubectl config view
Run Code Online (Sandbox Code Playgroud)
它给了我一个空的配置文件。只想知道我在执行Helm命令之类的命令时是否可以内联提供kubeconfig文件
helm init --kubeconfig=kubeconfigpath
Run Code Online (Sandbox Code Playgroud)
还是有什么办法可以在vsts发布过程中运行helm命令之前设置kubeconfig文件?
感谢任何帮助。谢谢。
在我的Deis应用中收到错误;在前端中间件中引入了头盔(Helmet)。该应用程序最初基于React Boilerplate和我运行过的大多数建议,我已经在源代码中实现/探索过,并且仍然会产生此“幻像”错误。
这仅在Deis应用实例上发生;在本地重现步骤时,完成(生产)构建过程的零问题。
当然,我可以helmet从中间件中删除,但是,我宁愿不...
错误输出:
> pkg-name@0.0.1 start /app
> npm run start:production
> pkg-name@0.0.1 start:production /app
> npm run build && npm run start:prod
> pkg-name@0.0.1 build /app
> cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --color -p --progress
/app/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
throw e;
^
2017-10-27T15:50:48+00:00 deis-app-name[]:
Error: Couldn't find preset "latest" relative to directory "/app"
at /app/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/app/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/app/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/app/node_modules/babel-register/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init …Run Code Online (Sandbox Code Playgroud) deis ×6
kubernetes ×3
docker ×2
azure-pipelines-release-pipeline ×1
babel ×1
babel-loader ×1
babeljs ×1
buildpack ×1
cloudflare ×1
flynn ×1
helmet.js ×1
heroku ×1
paas ×1
ssl ×1