-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial charts. need to fix caching issue to confirm Signed-off-by: Cassandra Coyle <[email protected]> * Adds ETCD data dir option, use emptyDir in statefulset Signed-off-by: joshvanl <[email protected]> * fix healthz port Signed-off-by: Cassandra Coyle <[email protected]> * updates to charts Signed-off-by: Cassandra Coyle <[email protected]> * wip. need to fix connectivity issue, but added to injector and updated client code to be an abstract wrapper Signed-off-by: Cassandra Coyle <[email protected]> * Make scheduler host address singular Signed-off-by: joshvanl <[email protected]> * Update cmd/scheduler/options/options.go Co-authored-by: Cassie Coyle <[email protected]> Signed-off-by: Josh van Leeuwen <[email protected]> * rm reminders service name condition Signed-off-by: Cassandra Coyle <[email protected]> * add listen address for scheduler Signed-off-by: Cassandra Coyle <[email protected]> * rebase in trigger reminders via scheduler PR and fix actors scheduler client Signed-off-by: Cassandra Coyle <[email protected]> * ha -> replicaCount, update conditionals including it and use Etcd over ETCD vars Signed-off-by: Cassandra Coyle <[email protected]> * rm volumeClaimTemplates and cleanup Signed-off-by: Cassandra Coyle <[email protected]> * fix version issue Signed-off-by: Cassandra Coyle <[email protected]> * rm diff Signed-off-by: Cassandra Coyle <[email protected]> * updates to ensure ha for k8s works Signed-off-by: Cassandra Coyle <[email protected]> * condense var into 1 line Signed-off-by: Cassandra Coyle <[email protected]> --------- Signed-off-by: Cassandra Coyle <[email protected]> Signed-off-by: joshvanl <[email protected]> Signed-off-by: Josh van Leeuwen <[email protected]> Co-authored-by: joshvanl <[email protected]>
- Loading branch information
Showing
25 changed files
with
589 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{{- if or (eq .Values.global.scheduler.enabled true) (eq .Values.global.reminders.serviceName "scheduler") }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: dapr-scheduler | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- range $key, $value := .Values.global.k8sLabels }} | ||
{{ $key }}: {{ tpl $value $ }} | ||
{{- end }} | ||
{{- end }} | ||
--- | ||
{{- if or (eq .Values.global.scheduler.enabled true) (eq .Values.global.reminders.serviceName "scheduler") }} | ||
{{- if eq .Values.global.rbac.namespaced true }} | ||
kind: Role | ||
{{- else }} | ||
kind: ClusterRole | ||
{{- end }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: dapr-scheduler | ||
labels: | ||
{{- range $key, $value := .Values.global.k8sLabels }} | ||
{{ $key }}: {{ tpl $value $ }} | ||
{{- end }} | ||
rules: [] | ||
{{- end }} | ||
--- | ||
{{- if or (eq .Values.global.scheduler.enabled true) (eq .Values.global.reminders.serviceName "scheduler") }} | ||
{{- if eq .Values.global.rbac.namespaced true }} | ||
kind: RoleBinding | ||
{{- else }} | ||
kind: ClusterRoleBinding | ||
{{- end }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: dapr-scheduler | ||
labels: | ||
{{- range $key, $value := .Values.global.k8sLabels }} | ||
{{ $key }}: {{ tpl $value $ }} | ||
{{- end }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: dapr-scheduler | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- if eq .Values.global.rbac.namespaced true }} | ||
kind: Role | ||
{{- else }} | ||
kind: ClusterRole | ||
{{- end }} | ||
name: dapr-scheduler | ||
{{- end }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
charts/dapr/charts/dapr_scheduler/templates/dapr_scheduler_poddisruptionbudget.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{- if and (gt (int .Values.replicaCount) 1) (eq .Values.global.scheduler.enabled true) }} | ||
{{- if .Capabilities.APIVersions.Has "policy/v1" }} | ||
apiVersion: policy/v1 | ||
{{- else }} | ||
apiVersion: policy/v1beta1 | ||
{{- end }} | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: dapr-scheduler-server-disruption-budget | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: dapr-scheduler-server | ||
{{- range $key, $value := .Values.global.k8sLabels }} | ||
{{ $key }}: {{ tpl $value $ }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.global.ha.disruption.minimumAvailable }} | ||
minAvailable: {{ .Values.global.ha.disruption.minimumAvailable }} | ||
{{- end }} | ||
{{- if .Values.global.ha.disruption.maximumUnavailable }} | ||
maxUnavailable: {{ .Values.global.ha.disruption.maximumUnavailable }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
app: dapr-scheduler-server | ||
{{- range $key, $value := .Values.global.k8sLabels }} | ||
{{ $key }}: {{ tpl $value $ }} | ||
{{- end }} | ||
{{- with .Values.global.labels }} | ||
{{- toYaml . | nindent 6 }} | ||
{{- end }} | ||
{{- end }} |
29 changes: 29 additions & 0 deletions
29
charts/dapr/charts/dapr_scheduler/templates/dapr_scheduler_service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{- if (eq .Values.global.scheduler.enabled true) }} | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: dapr-scheduler-server | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: dapr-scheduler-server | ||
{{- range $key, $value := .Values.global.k8sLabels }} | ||
{{ $key }}: {{ tpl $value $ }} | ||
{{- end }} | ||
{{- if .Values.service.annotations }} | ||
{{ toYaml .Values.service.annotations | indent 4}} | ||
{{- end }} | ||
spec: | ||
selector: | ||
app: dapr-scheduler-server | ||
# scheduler must be able to resolve pod address to join initial cluster peers | ||
# before POD is ready | ||
publishNotReadyAddresses: true | ||
ports: | ||
- name: api | ||
port: {{ .Values.ports.apiPort }} | ||
- name: etcd-client | ||
port: {{ .Values.ports.etcdRPCClientPort }} | ||
- name: etcd-peer | ||
port: {{ .Values.ports.etcdRPCPeerPort }} | ||
clusterIP: None # make the service headless | ||
{{- end }} |
Oops, something went wrong.