-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
publishing kubernetes manifests with image version: v0.1.42
- Loading branch information
1 parent
d5e260a
commit e082308
Showing
13 changed files
with
253 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
# Kubernetes configuration repository | ||
# Edge Delta Kubernetes configuration repository | ||
|
||
## Documentation | ||
<https://docs.edgedelta.com> | ||
|
||
## Deployments | ||
- [Standard deployment](edgedelta-agent.yml) | ||
- [On-prem deployment](edgedelta-agent-onprem.yml) | ||
|
||
## Notes | ||
- Please uncomment HTTP_PROXY section if needed. | ||
- Please uncomment SecurityContext section if needed. | ||
- [Install Kubernetes Agent using kubectl](https://docs.edgedelta.com/docs/install-kubernetes-agent-via-kubectl) | ||
- [Install Kubernetes Agent using Helm](https://docs.edgedelta.com/docs/install-kubernetes-agent-using-helm) |
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
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
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,15 @@ | ||
# On-prem Rehydration Kubernetes configurations | ||
|
||
## Documentation | ||
<https://docs.edgedelta.com/docs/on-prem-rehydration> | ||
|
||
## Deployments | ||
|
||
### OpenFaaS | ||
- [OpenFaaS Helm values.yml](on-prem-rehydration-helm-values.yml) | ||
- [Rehydration Function](on-prem-rehydration-function.yml) | ||
- [Rehydration Poller](on-prem-rehydration-poller.yml) | ||
|
||
### Non-OpenFaas | ||
- [Rehydration Handler](on-prem-rehydration-handler-faasless.yml) | ||
- [Rehydration Poller](on-prem-rehydration-poller-faasless.yml) |
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,49 @@ | ||
# reference https://docs.openfaas.com/reference/yaml/ | ||
version: 1.0 | ||
provider: | ||
name: openfaas | ||
gateway: http://127.0.0.1:8080 | ||
functions: | ||
rehydrate: | ||
skip_build: true | ||
# image built on 2022-06-23 for on-prem release v0.1.2 | ||
image: gcr.io/edgedelta/function@sha256:6bd3d40a73656585fc44f53ed79ebb9e2b816e663584d6d4069423f7de853a95 | ||
limits: | ||
memory: 16000Mi | ||
requests: | ||
memory: 16000Mi | ||
environment: | ||
ED_MODE: prod | ||
ED_REHYDRATION_PUSH_BATCH_SIZE: 10000 | ||
ED_HANDLER_NAME: rehydrate | ||
ED_REMOTE_REPOSITORY: "1" | ||
ED_REMOTE_TOKEN_FILE: /var/openfaas/secrets/ed-rehydration-token | ||
ED_REHYDRATION_MEMORY_THRESHOLD: 15G # This value should be less than memory limit of the pod, ideally 90% of the limit | ||
GOGC: 20 | ||
GODEBUG: madvdontneed=1 | ||
secrets: | ||
- ed-rehydration-token | ||
# in order to run rehydration function handler on specific nodes, uncomment below and specify a node label. | ||
# constraints: | ||
# - "eks.amazonaws.com/nodegroup=rehydration-node-group" | ||
labels: | ||
com.openfaas.scale.min: 1 | ||
com.openfaas.scale.max: 10 | ||
com.openfaas.scale.factor: 50 | ||
com.openfaas.scale.zero: true | ||
annotations: | ||
com.openfaas.health.http.path: "/healthz" | ||
com.openfaas.health.http.initialDelay: "5s" | ||
echofaas: | ||
skip_build: true | ||
# image built on 2022-06-23 for on-prem release v0.1.2 | ||
image: gcr.io/edgedelta/function@sha256:6bd3d40a73656585fc44f53ed79ebb9e2b816e663584d6d4069423f7de853a95 | ||
environment: | ||
ED_HANDLER_NAME: echo | ||
labels: | ||
com.openfaas.scale.min: 1 | ||
com.openfaas.scale.max: 1 | ||
com.openfaas.scale.zero: false | ||
annotations: | ||
com.openfaas.health.http.path: "/healthz" | ||
com.openfaas.health.http.initialDelay: "5s" |
66 changes: 66 additions & 0 deletions
66
on-prem-rehydration/on-prem-rehydration-handler-faasless.yml
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,66 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: rehydration-handler | ||
namespace: edgedelta-rehydration | ||
labels: | ||
k8s-app: rehydration-handler | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
k8s-app: rehydration-handler | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: rehydration-handler | ||
spec: | ||
terminationGracePeriodSeconds: 10 | ||
containers: | ||
- name: handler | ||
# image built on 2022-06-23 for on-prem release v0.1.2 | ||
image: gcr.io/edgedelta/function@sha256:6bd3d40a73656585fc44f53ed79ebb9e2b816e663584d6d4069423f7de853a95 | ||
ports: | ||
- containerPort: 8080 | ||
command: | ||
- /edgedelta/faas | ||
env: | ||
- name: ED_MODE | ||
value: "prod" | ||
- name: ED_REHYDRATION_PUSH_BATCH_SIZE | ||
value: "10000" | ||
- name: ED_HANDLER_NAME | ||
value: "rehydrate" | ||
- name: ED_REMOTE_REPOSITORY | ||
value: "1" | ||
- name: ED_REMOTE_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
key: ed-rehydration-token | ||
name: ed-rehydration-token | ||
- name: ED_REHYDRATION_MEMORY_THRESHOLD | ||
value: 15G # This value should be less than memory limit of the pod, ideally 90% of the limit | ||
- name: GOGC | ||
value: "20" | ||
- name: GODEBUG | ||
value: madvdontneed=1 | ||
resources: | ||
limits: | ||
cpu: 2000m | ||
memory: 16000Mi | ||
requests: | ||
cpu: 1000m | ||
memory: 16000Mi | ||
imagePullPolicy: Always | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: rehydration-handler | ||
namespace: edgedelta-rehydration | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 8080 | ||
selector: | ||
k8s-app: rehydration-handler |
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,20 @@ | ||
# ref: https://github.com/openfaas/faas-netes/blob/master/chart/openfaas/values.yaml | ||
functionNamespace: "edgedelta-rehydration" | ||
serviceType: "NodePort" | ||
basic_auth: false | ||
generateBasicAuth: false | ||
openfaasPRO: false | ||
faasnetes: | ||
readTimeout: "1h5m" | ||
writeTimeout: "1h5m" | ||
|
||
gateway: | ||
readTimeout: "1h5m" | ||
writeTimeout: "1h5m" | ||
upstreamTimeout: "1h" # Must be smaller than read/write_timeout | ||
|
||
queueWorkerPro: | ||
enabled: false | ||
|
||
queueWorker: | ||
ackWait: "1h" |
48 changes: 48 additions & 0 deletions
48
on-prem-rehydration/on-prem-rehydration-poller-faasless.yml
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,48 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: rehydration-poller | ||
namespace: edgedelta-rehydration | ||
labels: | ||
k8s-app: rehydration-poller | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
k8s-app: rehydration-poller | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: rehydration-poller | ||
spec: | ||
terminationGracePeriodSeconds: 10 | ||
containers: | ||
- name: poller | ||
# image built on 2022-06-23 for on-prem release v0.1.2 | ||
image: gcr.io/edgedelta/rehydrationpoller@sha256:0fb2a833b59a10cbf50bbe434a83284b9ba835db9d92ba6cca0e88130683f563 | ||
command: | ||
- /edgedelta/rehydrationpoller | ||
env: | ||
- name: ED_REHYDRATION_POLL_INTERVAL | ||
value: "10s" | ||
- name: ED_ORG_ID | ||
value: "" # put your edge delta org id here | ||
- name: ED_API_ENDPOINT | ||
value: https://api.edgedelta.com # default is https://api.edgedelta.com | ||
- name: ED_REHYDRATE_DIRECT_ENDPOINT | ||
value: "http://rehydration-handler.edgedelta-rehydration.svc.cluster.local:8080" | ||
- name: ED_DISABLE_OPENFAAS | ||
value: "1" | ||
- name: ED_REMOTE_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
key: ed-rehydration-token | ||
name: ed-rehydration-token | ||
resources: | ||
limits: | ||
cpu: 200m | ||
memory: 200Mi | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
imagePullPolicy: Always |
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,46 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: rehydration-poller | ||
namespace: edgedelta-rehydration | ||
labels: | ||
k8s-app: rehydration-poller | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
k8s-app: rehydration-poller | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: rehydration-poller | ||
spec: | ||
terminationGracePeriodSeconds: 10 | ||
containers: | ||
- name: poller | ||
# image built on 2022-06-23 for on-prem release v0.1.2 | ||
image: gcr.io/edgedelta/rehydrationpoller@sha256:0fb2a833b59a10cbf50bbe434a83284b9ba835db9d92ba6cca0e88130683f563 | ||
command: | ||
- /edgedelta/rehydrationpoller | ||
env: | ||
- name: ED_ORG_ID | ||
value: "" # put your edge delta org id here | ||
- name: ED_REHYDRATION_POLL_INTERVAL | ||
value: "10s" | ||
- name: ED_API_ENDPOINT | ||
value: https://api.edgedelta.com # default is https://api.edgedelta.com | ||
- name: ED_OPENFAAS_GATEWAY | ||
value: http://gateway-external.edgedelta-rehydration.svc.cluster.local:8080 | ||
- name: ED_REMOTE_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
key: ed-rehydration-token | ||
name: ed-rehydration-token | ||
resources: | ||
limits: | ||
cpu: 200m | ||
memory: 200Mi | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
imagePullPolicy: Always |