-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This deploys the changes from flyteorg/flytepropeller#200 lyft/flytedynamicjoboperator_DEPRECATED#98 flyteorg/flyteplugins#66 and changes the execution of the `hive` task type from the Qubole operator, to a plugin. It also add a pretty simple Redis deployment to use as a temporary FRM. **Note** that it currently uses and `emptyDir`, which means that if the Redis pod goes down, and it comes back up, we could potentially double the number of queries we want to run. If it goes down again, we could potentially triple. The yaml file for the redis deployment came from a local Helm deployment of redis. I then did an `-o yaml` get and heavily modified it and removed a bunch of stuff that wasn't needed. This PR does not remove the deployment of the Qubole operator yet, so we'll have to do that in a future PR, and the QuboleJob CRD will continue to function. Nothing will be using it though, so it should be okay.
- Loading branch information
1 parent
7492b81
commit e85e21c
Showing
36 changed files
with
767 additions
and
57 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
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,62 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: redis-resource-manager | ||
name: redis-resource-manager | ||
namespace: flyte | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
revisionHistoryLimit: 10 | ||
selector: | ||
matchLabels: | ||
app: redis-resource-manager | ||
template: | ||
metadata: | ||
labels: | ||
app: redis-resource-manager | ||
spec: | ||
containers: | ||
- env: | ||
- name: REDIS_PASSWORD | ||
value: mypassword | ||
image: bitnami/redis:4.0.2-r1 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
exec: | ||
command: | ||
- redis-cli | ||
- ping | ||
failureThreshold: 3 | ||
initialDelaySeconds: 30 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
name: redis-resource-manager | ||
ports: | ||
- containerPort: 6379 | ||
name: redis | ||
protocol: TCP | ||
readinessProbe: | ||
exec: | ||
command: | ||
- redis-cli | ||
- ping | ||
failureThreshold: 3 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 | ||
resources: | ||
requests: | ||
cpu: 200m | ||
memory: 512Mi | ||
volumeMounts: | ||
- mountPath: /bitnami | ||
name: redis-data | ||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
volumes: | ||
- name: redis-data | ||
emptyDir: {} |
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,3 @@ | ||
resources: | ||
- deployment.yaml | ||
- 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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: redis-resource-manager | ||
name: redis-resource-manager | ||
namespace: flyte | ||
spec: | ||
ports: | ||
- name: redis | ||
port: 6379 | ||
protocol: TCP | ||
targetPort: redis | ||
selector: | ||
app: redis-resource-manager | ||
type: ClusterIP |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ data: | |
common: |- | ||
logger: | ||
show-source: true | ||
level: 5 | ||
level: 6 | ||
storage: | ||
connection: | ||
access-key: minio | ||
|
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
Oops, something went wrong.