Skip to content

Commit

Permalink
update secret
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Aug 9, 2023
1 parent 77913bd commit e9ff03b
Show file tree
Hide file tree
Showing 13 changed files with 158 additions and 17 deletions.
10 changes: 3 additions & 7 deletions charts/flyte-agent/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,12 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
# Optional blocks for secret mount

{{- define "agentSecret.volume" -}}
{{- with .Values.agentSecret.name -}}
- name: {{ . }}
- name: {{ include "flyte.name" . }}
secret:
secretName: {{ . }}
{{- end }}
secretName: {{ include "flyte.name" . }}
{{- end }}

{{- define "agentSecret.volumeMount" -}}
{{- with .Values.agentSecret.name -}}
- mountPath: /etc/agent-secret
name: {{ . }}
{{- end }}
name: {{ include "flyte.name" . }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/flyte/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ dependencies:
alias: flyte
version: v0.1.10 # VERSION
repository: file://../flyte-core # REPOSITORY
- name: flyteagent
alias: flyteagent
version: v0.1.10 # VERSION
repository: file://../flyte-agent # REPOSITORY
- name: contour
version: 7.10.1
repository: https://charts.bitnami.com/bitnami
Expand Down
1 change: 1 addition & 0 deletions charts/flyte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ A Helm chart for Flyte Sandbox

| Repository | Name | Version |
|------------|------|---------|
| file://../flyte-agent | flyteagent(flyteagent) | v0.1.10 |
| file://../flyte-core | flyte(flyte-core) | v0.1.10 |
| https://charts.bitnami.com/bitnami | contour | 7.10.1 |
| https://googlecloudplatform.github.io/spark-on-k8s-operator | sparkoperator(spark-operator) | 1.1.15 |
Expand Down
6 changes: 5 additions & 1 deletion deployment/eks/flyte_aws_scheduler_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,8 @@ spec:
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:

- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
Expand All @@ -930,6 +931,9 @@ spec:
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
---
# Source: flyte-core/templates/admin/deployment.yaml
apiVersion: apps/v1
Expand Down
6 changes: 5 additions & 1 deletion deployment/eks/flyte_helm_controlplane_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,8 @@ spec:
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:

- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
Expand All @@ -631,6 +632,9 @@ spec:
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
---
# Source: flyte-core/templates/admin/deployment.yaml
apiVersion: apps/v1
Expand Down
6 changes: 5 additions & 1 deletion deployment/eks/flyte_helm_dataplane_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ spec:
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:

- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
Expand All @@ -506,6 +507,9 @@ spec:
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
---
# Source: flyte-core/templates/propeller/deployment.yaml
apiVersion: apps/v1
Expand Down
6 changes: 5 additions & 1 deletion deployment/eks/flyte_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,8 @@ spec:
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:

- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
Expand All @@ -961,6 +962,9 @@ spec:
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
---
# Source: flyte-core/templates/admin/deployment.yaml
apiVersion: apps/v1
Expand Down
6 changes: 5 additions & 1 deletion deployment/gcp/flyte_helm_controlplane_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,8 @@ spec:
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:

- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
Expand All @@ -646,6 +647,9 @@ spec:
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
---
# Source: flyte-core/templates/admin/deployment.yaml
apiVersion: apps/v1
Expand Down
6 changes: 5 additions & 1 deletion deployment/gcp/flyte_helm_dataplane_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,8 @@ spec:
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:

- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
Expand All @@ -514,6 +515,9 @@ spec:
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
---
# Source: flyte-core/templates/propeller/deployment.yaml
apiVersion: apps/v1
Expand Down
6 changes: 5 additions & 1 deletion deployment/gcp/flyte_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,8 @@ spec:
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:

- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
Expand All @@ -984,6 +985,9 @@ spec:
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
---
# Source: flyte-core/templates/admin/deployment.yaml
apiVersion: apps/v1
Expand Down
6 changes: 5 additions & 1 deletion deployment/sandbox-binary/flyte_agent_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ spec:
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:

- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
Expand All @@ -94,3 +95,6 @@ spec:
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ spec:
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:

- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
Expand All @@ -423,6 +424,9 @@ spec:
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
---
# Source: flyte-binary/templates/deployment.yaml
apiVersion: apps/v1
Expand Down
106 changes: 105 additions & 1 deletion deployment/sandbox/flyte_helm_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ metadata:
name: flyte-pod-webhook
namespace: flyte
---
# Source: flyte/charts/flyteagent/templates/agent/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: flyteagent
namespace: flyte
labels:
app.kubernetes.io/name: flyteagent
app.kubernetes.io/instance: flyte
helm.sh/chart: flyteagent-v0.1.10
app.kubernetes.io/managed-by: Helm
---
# Source: flyte/charts/kubernetes-dashboard/templates/serviceaccount.yaml
# Copyright 2017 The Kubernetes Authors.
#
Expand Down Expand Up @@ -159,6 +171,16 @@ metadata:
namespace: flyte
type: Opaque
---
# Source: flyte/charts/flyteagent/templates/agent/secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: flyteagent
namespace: flyte
type: Opaque
data:
username: User
---
# Source: flyte/charts/kubernetes-dashboard/templates/secret.yaml
# Copyright 2017 The Kubernetes Authors.
#
Expand Down Expand Up @@ -6273,6 +6295,30 @@ spec:
port: 443
targetPort: 9443
---
# Source: flyte/charts/flyteagent/templates/agent/service.yaml
apiVersion: v1
kind: Service
metadata:
name: flyteagent
namespace: flyte
labels:
app.kubernetes.io/name: flyteagent
app.kubernetes.io/instance: flyte
helm.sh/chart: flyteagent-v0.1.10
app.kubernetes.io/managed-by: Helm
annotations:
projectcontour.io/upstream-protocol.h2c: grpc
spec:
type: ClusterIP
ports:
- name: agent-grpc
port: 8000
protocol: TCP
targetPort: agent-grpc
selector:
app.kubernetes.io/name: flyteagent
app.kubernetes.io/instance: flyte
---
# Source: flyte/charts/kubernetes-dashboard/templates/service.yaml
# Copyright 2017 The Kubernetes Authors.
#
Expand Down Expand Up @@ -6751,7 +6797,8 @@ spec:
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:

- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
Expand All @@ -6766,6 +6813,9 @@ spec:
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
---
# Source: flyte/charts/flyte/templates/admin/deployment.yaml
apiVersion: apps/v1
Expand Down Expand Up @@ -7359,6 +7409,60 @@ spec:
secret:
secretName: flyte-pod-webhook
---
# Source: flyte/charts/flyteagent/templates/agent/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: flyteagent
namespace: flyte
labels:
app.kubernetes.io/name: flyteagent
app.kubernetes.io/instance: flyte
helm.sh/chart: flyteagent-v0.1.10
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: flyteagent
app.kubernetes.io/instance: flyte
template:
metadata:
annotations:
labels:
app.kubernetes.io/name: flyteagent
app.kubernetes.io/instance: flyte
helm.sh/chart: flyteagent-v0.1.10
app.kubernetes.io/managed-by: Helm
spec:
containers:
- command:
- pyflyte
- serve
image: "ghcr.io/flyteorg/flyteagent:1.8.3"
imagePullPolicy: "IfNotPresent"
name: flyteagent
volumeMounts:
- mountPath: /etc/agent-secret
name: flyteagent
ports:
- containerPort: 8000
name: agent-grpc
resources:
limits:
cpu: 500m
ephemeral-storage: 200Mi
memory: 200Mi
requests:
cpu: 500m
ephemeral-storage: 200Mi
memory: 200Mi
serviceAccountName: flyteagent
volumes:
- name: flyteagent
secret:
secretName: flyteagent
---
# Source: flyte/charts/kubernetes-dashboard/templates/deployment.yaml
# Copyright 2017 The Kubernetes Authors.
#
Expand Down

0 comments on commit e9ff03b

Please sign in to comment.