Skip to content

Commit

Permalink
disable agent in flyte-binary
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 7296af7 commit b8eb4b8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 343 deletions.
43 changes: 1 addition & 42 deletions charts/flyte-binary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,48 +113,7 @@ Chart for basic single Flyte executable deployment
| flyte-core-components.dataCatalog.disabled | bool | `false` | |
| flyte-core-components.propeller.disableWebhook | bool | `false` | |
| flyte-core-components.propeller.disabled | bool | `false` | |
| flyteagent.deployment.annotations | object | `{}` | |
| flyteagent.deployment.args | list | `[]` | |
| flyteagent.deployment.command | list | `[]` | |
| flyteagent.deployment.extraEnvVars | list | `[]` | |
| flyteagent.deployment.extraEnvVarsConfigMap | string | `""` | |
| flyteagent.deployment.extraEnvVarsSecret | string | `""` | |
| flyteagent.deployment.extraPodSpec | object | `{}` | |
| flyteagent.deployment.extraVolumeMounts | list | `[]` | |
| flyteagent.deployment.extraVolumes | list | `[]` | |
| flyteagent.deployment.image.pullPolicy | string | `"IfNotPresent"` | |
| flyteagent.deployment.image.repository | string | `"ghcr.io/flyteorg/flyteagent"` | |
| flyteagent.deployment.image.tag | string | `"1.6.2b1"` | |
| flyteagent.deployment.initContainers | list | `[]` | |
| flyteagent.deployment.labels | object | `{}` | |
| flyteagent.deployment.lifecycleHooks | object | `{}` | |
| flyteagent.deployment.livenessProbe | object | `{}` | |
| flyteagent.deployment.podAnnotations | object | `{}` | |
| flyteagent.deployment.podLabels | object | `{}` | |
| flyteagent.deployment.podSecurityContext.enabled | bool | `false` | |
| flyteagent.deployment.podSecurityContext.fsGroup | int | `65534` | |
| flyteagent.deployment.podSecurityContext.runAsGroup | int | `65534` | |
| flyteagent.deployment.podSecurityContext.runAsUser | int | `65534` | |
| flyteagent.deployment.readinessProbe | object | `{}` | |
| flyteagent.deployment.replicas | int | `1` | |
| flyteagent.deployment.sidecars | list | `[]` | |
| flyteagent.deployment.startupProbe | object | `{}` | |
| flyteagent.enable | bool | `false` | |
| flyteagent.service.annotations | object | `{}` | |
| flyteagent.service.clusterIP | string | `""` | |
| flyteagent.service.externalTrafficPolicy | string | `"Cluster"` | |
| flyteagent.service.extraPorts | list | `[]` | |
| flyteagent.service.labels | object | `{}` | |
| flyteagent.service.loadBalancerIP | string | `""` | |
| flyteagent.service.loadBalancerSourceRanges | list | `[]` | |
| flyteagent.service.nodePort | string | `""` | |
| flyteagent.service.port | string | `""` | |
| flyteagent.service.type | string | `"ClusterIP"` | |
| flyteagent.serviceAccount.annotations | object | `{}` | |
| flyteagent.serviceAccount.create | bool | `true` | |
| flyteagent.serviceAccount.imagePullSecrets | list | `[]` | |
| flyteagent.serviceAccount.labels | object | `{}` | |
| flyteagent.serviceAccount.name | string | `""` | |
| flyteagent.enabled | bool | `false` | |
| fullnameOverride | string | `""` | |
| ingress.commonAnnotations | object | `{}` | |
| ingress.create | bool | `false` | |
Expand Down
102 changes: 1 addition & 101 deletions charts/flyte-binary/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,107 +369,7 @@ serviceAccount:
# flyteagent Configure Flyte Agent objects
flyteagent:
# enable Flag to enable bundled Flyte Agent
enable: false
# deployment Configure Flyte Agent deployment specification
deployment:
# replicas Number of replicas to create
replicas: 1
# image Configure image to use for Flyte Agent
image:
# repository Flyte Agent image repository
repository: ghcr.io/flyteorg/flyteagent # FLYTE_AGENT_IMAGE
# tag Flyte image tag
tag: 1.6.2b1 # FLYTE_AGENT_TAG
# pullPolicy Flyte Agent image pull policy
pullPolicy: IfNotPresent
# extraEnvVars Array with extra environment variables to add to Flyte Agent
extraEnvVars: []
# extraEnvVarsConfigMap Name of existing ConfigMap containing extra env vars for Flyte Agent
extraEnvVarsConfigMap: ""
# extraEnvVarsSecret Name of existing Secret containing extra env vars for Flyte Agent
extraEnvVarsSecret: ""
# command Override default container command
command: []
# args Override default container args
args: []
# livenessProbe Override default container liveness probe
# See: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
livenessProbe: {}
# readinessProbe Override default container readiness probe
readinessProbe: {}
# startupProbe Specify a startup probe for Flyte Agent container
startupProbe: {}
# lifecycleHooks Specify hooks to run in Flyte container before or after startup
lifecycleHooks: {}
# resources Resource limits and requests for Flyte Agent container
# Uncomment and update to specify resources for deployment
# resources:
# limits:
# memory: 1Gi
# requests:
# cpu: 1
# podSecurityContext Specify security context for Flyte Agent pod
# See: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
podSecurityContext:
enabled: false
runAsUser: 65534
runAsGroup: 65534
fsGroup: 65534
# labels Add labels to Flyte Agent deployment
labels: {}
# annotations Add annotations to Flyte Agent deployment
annotations: {}
# labels Add labels to Flyte Agent pod
podLabels: {}
# annotations Add annotations to Flyte Agent pod
podAnnotations: {}
# extraVolumeMounts Specify additional volumeMounts for Flyte Agent container
extraVolumeMounts: []
# extraVolume Specify additional volumes for Flyte Agent pod
extraVolumes: []
# sidecars Specify additional containers for Flyte Agent pod
sidecars: []
# initContainers Specify additional init containers for Flyte Agent pod
initContainers: []
# extraPodSpec Specify additional configuration for Flyte Agent pod
# This can be used for adding affinity, tolerations, hostNetwork, etc.
extraPodSpec: {}
# service Configure service for Flyte Agent
service:
# type Kubernetes service type
type: ClusterIP
# port Port for Flyte Agent service
# If not specified, defaults to corresponding container ports
port: ""
# nodePort Node port for Flyte Agent service if service type is `NodePort` or `LoadBalancer`
nodePort: ""
# clusterIP Set static IP if service type is `ClusterIP`
clusterIP: ""
# labels Add labels to Flyte Agent service
labels: {}
# annotations Add annotations to Flyte Agent service
annotations: {}
# loadBalancerIP Set static IP if service type is `LoadBalancer`
loadBalancerIP: ""
# externalTrafficPolicy Enable client source IP preservation if service type is `NodePort` or `LoadBalancer`
# See: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
externalTrafficPolicy: Cluster
# loadBalancerSourceRanges Addresses that are allowed when service is `LoadBalancer`
loadBalancerSourceRanges: []
# extraPorts Additional ports to add to Flyte Agent service
extraPorts: []
# serviceAccount Configure Flyte Agent ServiceAccount
serviceAccount:
# create Create ServiceAccount for Flyte Agent
create: true
# name Name of service account
name: ""
# labels Add labels to ServiceAccount
labels: {}
# annotations Add annotations to ServiceAccount
annotations: {}
# imagePullSecrets Secrets to use for fetching images from private registries
imagePullSecrets: []
enabled: false

enabled_plugins:
# -- Tasks specific configuration [structure](https://pkg.go.dev/github.com/flyteorg/flytepropeller/pkg/controller/nodes/task/config#GetConfig)
Expand Down
100 changes: 0 additions & 100 deletions deployment/sandbox-binary/flyte_sandbox_binary_helm_generated.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
---
# Source: flyte-binary/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-binary/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
Expand All @@ -25,16 +13,6 @@ metadata:
app.kubernetes.io/managed-by: Helm
annotations:
---
# Source: flyte-binary/charts/flyteagent/templates/agent/secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: flyteagent
namespace: flyte
type: Opaque
data:
username: User
---
# Source: flyte-binary/templates/config-secret.yaml
apiVersion: v1
kind: Secret
Expand Down Expand Up @@ -276,30 +254,6 @@ subjects:
name: flyte-flyte-binary
namespace: "flyte"
---
# Source: flyte-binary/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-binary/templates/service/grpc.yaml
apiVersion: v1
kind: Service
Expand Down Expand Up @@ -374,60 +328,6 @@ spec:
app.kubernetes.io/instance: flyte
app.kubernetes.io/component: flyte-binary
---
# Source: flyte-binary/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-binary/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
Expand Down
Loading

0 comments on commit b8eb4b8

Please sign in to comment.