Comments (7)
Hi @deanmaniatis! Thanks for reporting this! I'm not quite sure how this code got out of sync with what's in the book, but I suspect a few small differences are inevitable over the length of the production process.
When you say:
the latter will fail when feeding the staging values yml file
What do you mean exactly? Can you share the command you're running and the error message that you're getting?
from demo.
# Inside demo/hello-helm
$ helm install --name demo-staging --values=./k8s/demo/staging-values.yaml ./k8s/demo/ ...
Error: This command needs 1 argument: chart name
# This will succeed
$ helm install --name demo-staging --values=./k8s/demo/staging-values.yaml ./k8s/demo/
# But this will fail as k8s/demo/templates/service.yaml is missing a trailing {{ .Values.environment }}
$ helm install --name demo ./k8s/demo/
I've been using this environment for K8s and Helm.
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:11:31Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:02:58Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
$ helm version
Client: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.13.1", GitCommit:"618447cbf203d147601b4b9bd7f8c37a5d39fbb4", GitTreeState:"clean"}
from demo.
But this will fail as k8s/demo/templates/service.yaml is missing a trailing {{ .Values.environment }}
$ helm install --name demo ./k8s/demo/
That works for me; when you say 'this will fail', what error do you get?
from demo.
Error: release demo failed: services "demo-service" already exists
I guess that's because both Helm releases (one with default and one with staging values) have the same service name?
from demo.
@deanmaniatis that is correct. Helm does not allow you to have two releases in the same cluster with the same name. Also, Kubernetes does not allow two services in the same namespace to have the same name. You could either append/prepend the environment and use separate namespaces to to make the names unique, or for the demo you can do helm delete demo --purge
to remove and clean up the demo resources before doing a new example.
from demo.
Sorry for the delay checking back in but were you able to get the example working @deanmaniatis? If so I'll go ahead and close this issue.
from demo.
Closing to clean up old issues, but reply back if you think this is unresolved and want to continue discussing.
from demo.
Related Issues (13)
- Somwhat confusing port mapping in example HOT 2
- apiVersion: extensions/v1beta1 errors HOT 4
- hello-helm example fails to install HOT 4
- Helm 3 HOT 2
- Sops example error HOT 2
- Sops and helm usage proposal HOT 2
- Known issue guide HOT 1
- Chapter 2 kubectl deployment doesn't work on a real cluster HOT 4
- kubectl port-forward gives "error upgrading connection: error dialing backend: dial tcp 10.204.101.149:10250: i/o timeout" HOT 5
- Error: container has runAsNonRoot and image will run as root HOT 1
- error: unable to recognize "k8s/deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1" HOT 10
- ERR_EMPTY_RESPONSE with hello Docker HOT 2
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 demo.