-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[incubator/percona-xtradb-cluster] New Chart! #2995
Conversation
Thanks for the PR. So, why did you create a new chart instead of extending the Percona chart? |
690c4c0
to
387aae2
Compare
@unguiculus I created a new chart because:
|
hrmmm the
|
bd07f60
to
a0b99ab
Compare
Expand the name of the chart. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
*/}} | ||
{{- define "percona.name" -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Folow the chart name: percona-xtradb-cluster.name
metadata: | ||
name: {{ template "percona.fullname" . }}-config-files | ||
labels: | ||
app: {{ template "percona.fullname" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app
label should be {{ template "percona.name" . }}
. Update everywhere.
ports: | ||
- port: 9104 | ||
selector: | ||
app: {{ template "percona.fullname" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add release
label to selector.
- name: state-snap | ||
port: 4444 | ||
selector: | ||
app: {{ template "percona.fullname" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add release
label to selector.
port: 3306 | ||
targetPort: mysql | ||
selector: | ||
app: {{ template "percona.fullname" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add release
label to selector.
template: | ||
metadata: | ||
labels: | ||
app: {{ template "percona.fullname" . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add release
label to selector.
|
||
## percona image and version | ||
## ref: https://hub.docker.com/r/percona/percona-xtradb-cluster/tags/ | ||
imageRepo: "percona/percona-xtradb-cluster" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User this:
image:
repository:
tag:
pullPolicy:
## Configure resource requests and limits | ||
## ref: http://kubernetes.io/docs/user-guide/compute-resources/ | ||
## | ||
resources: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't specify defaults:
resources: {}
# requests:
# memory: 256Mi
# cpu: 100m
## It's recommended to change this to 'Always' if the image tag is 'latest' | ||
## ref: http://kubernetes.io/docs/user-guide/images/#updating-images | ||
## | ||
imagePullPolicy: Always |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be IfNotPresent
|
||
## Specify password for root user | ||
## | ||
mysqlRootPassword: not-a-secure-password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passwords are auto-generated if not specified. However, this will never be the case, since you add a default here. Default should be auto-generated.
cb49f35
to
536ea15
Compare
@unguiculus sorry for the slow response, vacation and all that. this update should address your comments. |
This new chart expands on the percona chart to include xtradb clustering.
536ea15
to
356b237
Compare
ugh sorry I just realized I squashed my history... bad habits from previous projects :( |
- https://github.com/kubernetes/charts | ||
- https://github.com/percona-lab/percona-docker/ | ||
maintainers: | ||
- name: Paul Czarkowski |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Github username
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
- https://github.com/percona-lab/percona-docker/ | ||
maintainers: | ||
- name: Paul Czarkowski | ||
email: username.taken@gmail.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup 😆
@@ -0,0 +1,21 @@ | |||
name: percona-xtradb-cluster | |||
version: 0.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add appVersion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
/assign @unguiculus |
- name: database | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy | quote }} | ||
command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a consistent list indentation style. It looks like everywhere else you did not indent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch! fixed.
/ok-to-test |
/lgtm |
/lgtm cancel |
I'd suggest you move the chart to stable before we merge it. |
moved to stable 😍 |
Fix any references to incubator. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: paulczar, unguiculus The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
This new chart expands on the percona chart to include xtradb clustering.
Thank you for contributing to kubernetes/charts. Before you submit this PR we'd like to
make sure you are aware of our technical requirements and best practices:
For a quick overview across what we will look at reviewing your PR, please read
our review guidelines:
Following our best practices right from the start will accelerate the review process and
help get your PR merged quicker.
When updates to your PR are requested, please add new commits and do not squash the
history. This will make it easier to identify new changes. The PR will be squashed
anyways when it is merged. Thanks.