-
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.
Allows work pools for Prefect servers without API keys, and includes …
…examples (#70) We were inadvertently requiring an API key to connect to a remote Prefect server, but that is only required for Prefect Cloud at this time. This removes that restriction, and adds examples of Prefect servers and Prefect Cloud configurations for reference.
- Loading branch information
1 parent
4addfea
commit 2547661
Showing
4 changed files
with
130 additions
and
4 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
27 changes: 27 additions & 0 deletions
27
config/samples/v1_prefectworkpool_external_prefect_cloud.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,27 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: the-api-key-secret | ||
type: Opaque | ||
stringData: | ||
the-api-key: "pnu_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | ||
--- | ||
apiVersion: prefect.io/v1 | ||
kind: PrefectWorkPool | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: prefect-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
name: external-pool | ||
spec: | ||
type: process | ||
server: | ||
remoteApiUrl: https://api.prefect.cloud | ||
accountId: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa | ||
workspaceId: bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb | ||
apiKey: | ||
valueFrom: | ||
secretKeyRef: | ||
name: 'the-api-key-secret' | ||
key: 'the-api-key' | ||
workers: 3 |
12 changes: 12 additions & 0 deletions
12
config/samples/v1_prefectworkpool_external_prefect_server.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,12 @@ | ||
apiVersion: prefect.io/v1 | ||
kind: PrefectWorkPool | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: prefect-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
name: external-pool | ||
spec: | ||
type: process | ||
server: | ||
remoteApiUrl: https://my-server.example.com | ||
workers: 3 |
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