- Make sure Propeller's pod has at least 8Gi of memory and 4CPUs
- Increase Propeller's throughput:
propeller: workers: 400
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
cat <<EOF | kind create cluster --config=- | |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
nodes: | |
- role: control-plane | |
kubeadmConfigPatches: | |
- | | |
kind: InitConfiguration | |
nodeRegistration: | |
kubeletExtraArgs: |
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
# Example 1 | |
@task | |
def task1() -> Union[int, str]: | |
return "hello world" | |
--> Outputs literal: | |
{ | |
"union": { | |
val: <literal scalar string "hello world"> | |
index: 1 |
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
import os | |
import time | |
from typing import List | |
from flytekit import task, workflow | |
from flytekitplugins.pod import Pod | |
from kubernetes.client.models import ( | |
V1Container, | |
V1EmptyDirVolumeSource, | |
V1PodSpec, |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: flyte | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: kubernetes-dashboard | |
--- |
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 is a system-wide configuration file used to | |
# keep track of registries for various container backends. | |
# It adheres to TOML format and does not support recursive | |
# lists of registries. | |
# The default location for this configuration file is /etc/containers/registries.conf. | |
# The only valid categories are: 'registries.search', 'registries.insecure', | |
# and 'registries.block'. |
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
@inputs(in_str=Types.String) | |
@dynamic_task | |
def dynamic_wf_task(wf_params, in_str): | |
wf_params.logging.info("Running dynamic task... yielding a code generated sub workflow") | |
res = [] | |
nodes = {} | |
previous_node = None | |
i = 0 | |
for s in in_str: |
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
def with_timeout(node, time_out): | |
""" | |
:param SdkNode node: The node to override timeout for. | |
:param datetime.timedelta time_out: New Timeout for the node. | |
""" | |
node.metadata._timeout = time_out | |
return node | |
@workflow_class |