Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Istio release 0.2.6 - #2369

Merged
lachie83 merged 9 commits into
helm:masterfrom
lachie83:istio-0-2-6
Oct 4, 2017
Merged

lachie83 merged 9 commits into
helm:masterfrom
lachie83:istio-0-2-6

Conversation

@lachie83

@lachie83 lachie83 commented Oct 2, 2017 •

Copy link
Copy Markdown
Contributor

Updated Istio chart to support release 0.2.6

The PR is all but done but need an assist on the following:

  • Upstream fix for the initializer installation

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 2, 2017
@lachie83 lachie83 added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 2, 2017
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 2, 2017
@lachie83 lachie83 changed the title istio release 0.2.6 Istio release 0.2.6 Oct 2, 2017
# https://github.com/kubernetes/charts/issues/1501
version: 0.1.6-chart6
appVersion: 0.1.6
version: 0.2.6-chart1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't understand why we use this confusing chart versioning here. Doesn't make sense to me. version and appVersion are two different things. You kind of force them to be in sync with this. I don't know of any other chart that does this in that fashion.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Istio users were getting confused when trying to install because helm shows the chart version not the appVersion. So while they wanted to install 0.1.6 of Istio they were searching and finding 0.3.0 of the Helm chart. There is no rule against versioning this way if its what the maintainers of the chart want.

@@ -0,0 +1,383 @@
{{- if and .Values.istio.install (not .Release.IsInstall) -}}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best practice is to have one file per resource. Maybe you could put them in a subfolder custom-resources. Would be much clearer.

@@ -0,0 +1,289 @@
{{- $serviceName := include "istio.name" . -}}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above. One resource per file, please.

@@ -0,0 +1,48 @@
{{- $serviceName := include "istio.name" . -}}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One file per resource, please.

@@ -1,10 +1,17 @@
{{- if and .Values.istio.install (not .Release.IsInstall) -}}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One file per resource, please.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ouch! Also for the CRD and customresources, potentially hundreds of files... Can we get consensus on what we should do here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@viglesiasce any opinions on this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with multiple resources per file if it makes your life as a chart maintainer easier. As a maintainer of the repo it doesn't make things harder or easier for me.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, +1 for this, I think that we can treat the RBAC as an exception for this, maintaining in one file is more easy to understand.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, then let's keep it like this. I think, in general we recommend one file per resource, but I guess an exception makes sense here.

alpha.istio.io/sidecar: ignore
sidecar.istio.io/inject: "false"
image: docker.io/openzipkin/zipkin
imageTag: latest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

latest? Is the a stable version?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what the release calls for

alpha.istio.io/sidecar: ignore
sidecar.istio.io/inject: "false"
image: quay.io/coreos/prometheus
imageTag: v1.1.1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.1.1 sounds ancient. 1.7.2 is current.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is nothing stopping Istio from requiring 1.1.1 if that's what it is tested against.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what release 0.2.6 calls for

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I was just wondering.

Comment thread incubator/istio/values.yaml Outdated
@@ -62,18 +67,6 @@ pilot:
cpu: 100m
memory: 128Mi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The recommendation is not to specify defaults for resources.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. Will remove

Add configmap checksum to roll deploy
Add initializer
Various bug fixes
@viglesiasce

Copy link
Copy Markdown
Contributor

Is apiextensions beta in 1.7.x?

@gyliu513 gyliu513 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lachie83 for the great work, I think that for all of the deployment, we may also need to add the following to all of the deployment files to make sure the deployment won't got stuck in case the initConfig got created first.

apiVersion: apps/v1beta1
kind: Deployment
metadata:
  initializers:
    pending: []

Please refer to https://github.com/kelseyhightower/kubernetes-initializer-tutorial/blob/master/docs/best-practices.md#best-practices for detail

@@ -1,5 +1,6 @@
{{- if and .Values.istio.install (not .Release.IsInstall) -}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The service graph image should also be updated to docker.io/istio/servicegraph:0.2.6

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Thanks!

spec:
metrics:
- name: request_count
instance_name: requestcount.metric.istio-system

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we can remove the istio-system or replace it with {{ .Release.Namespace }}?

@@ -1,10 +1,17 @@
{{- if and .Values.istio.install (not .Release.IsInstall) -}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, +1 for this, I think that we can treat the RBAC as an exception for this, maintaining in one file is more easy to understand.

@lachie83

lachie83 commented Oct 3, 2017 •

Copy link
Copy Markdown
Contributor Author

@viglesiasce

Is apiextensions beta in 1.7.x?

$ kubectl api-versions | grep apiextensions
apiextensions.k8s.io/v1beta1
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.6", GitCommit:"4bc5e7f9a6c25dc4c03d4d656f2cefd21540e28c", GitTreeState:"clean", BuildDate:"2017-09-15T08:51:09Z", GoVersion:"go1.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"clean", BuildDate:"2017-08-31T08:56:23Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

@lachie83

lachie83 commented Oct 3, 2017 •

Copy link
Copy Markdown
Contributor Author

@gyliu513 I took a look through the initializer source and it appears to ignore anything with the following annotation set so we should be covered. Feel free to test and let me know

sidecar.istio.io/inject: "false"

See https://github.com/istio/pilot/blob/master/platform/kube/inject/initializer.go
https://github.com/istio/pilot/blob/master/platform/kube/inject/inject.go#L50

@viglesiasce

Copy link
Copy Markdown
Contributor

/retest

Comment thread incubator/istio/templates/rbac.yaml Outdated
name: {{ $serviceName }}-initializer-admin-role-binding
subjects:
- kind: ServiceAccount
name: {{ $serviceName }}--initializer-service-account

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is -- (double dash) intentional here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems a typo ;-)

@gyliu513

gyliu513 commented Oct 3, 2017

Copy link
Copy Markdown
Contributor

@lachie83 What I concerned is sometimes, you may found that you cannot deploy applications and all applications will be pending for about 30s and then timeout. For such kind of issue, it is usually caused by the initializerConfig if the sidecar initializer does not work. Please check out one of my blog post here for detail https://github.com/gyliu513/jay-work/blob/master/k8s/example/kube-initializer-tutorial/medium-article.md#troubleshooting

No worry, I do hope that we can merge your PR first and I can follow up with other issues ;-)

@gyliu513 gyliu513 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@lachie83 bookInfo also works fine with sidecar auto injection, cool!!!

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 4, 2017
@gyliu513

gyliu513 commented Oct 4, 2017

Copy link
Copy Markdown
Contributor

@lachie83 0.2.7 is released https://github.com/istio/istio/releases/tag/0.2.7 :-) Hope we can have 0.2.6 soon!

@lachie83

lachie83 commented Oct 4, 2017

Copy link
Copy Markdown
Contributor Author

@gyliu513 I've confirmed that 0.2.7 is just an image bump for now...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants