Skip to content

Commit

Permalink
publishing kubernetes manifests with image version: v0.1.42
Browse files Browse the repository at this point in the history
  • Loading branch information
service-edgedelta committed Sep 19, 2022
1 parent d5e260a commit e082308
Show file tree
Hide file tree
Showing 13 changed files with 253 additions and 15 deletions.
12 changes: 3 additions & 9 deletions README.md
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)
2 changes: 1 addition & 1 deletion edgedelta-agent-default-sa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
spec:
containers:
- name: edgedelta-agent
image: gcr.io/edgedelta/agent:v0.1.41
image: gcr.io/edgedelta/agent:v0.1.42
env:
- name: ED_API_KEY
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion edgedelta-agent-onprem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
serviceAccountName: edgedelta
containers:
- name: edgedelta-agent
image: gcr.io/edgedelta/agent:v0.1.41
image: gcr.io/edgedelta/agent:v0.1.42
env:
- name: ED_BACKEND_DISABLED
value: "1"
Expand Down
2 changes: 1 addition & 1 deletion edgedelta-agent-persisting-cursor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
serviceAccountName: edgedelta
containers:
- name: edgedelta-agent
image: gcr.io/edgedelta/agent:v0.1.41
image: gcr.io/edgedelta/agent:v0.1.42
env:
- name: ED_API_KEY
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion edgedelta-agent-single-pod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
serviceAccountName: edgedelta
containers:
- name: edgedelta-agent
image: gcr.io/edgedelta/agent:v0.1.41
image: gcr.io/edgedelta/agent:v0.1.42
command:
- /edgedelta/edgedelta
env:
Expand Down
2 changes: 1 addition & 1 deletion edgedelta-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
serviceAccountName: edgedelta
containers:
- name: edgedelta-agent
image: gcr.io/edgedelta/agent:v0.1.41
image: gcr.io/edgedelta/agent:v0.1.42
env:
- name: ED_API_KEY
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion edgedelta-prom-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
serviceAccountName: edgedelta
containers:
- name: edgedelta-agent
image: gcr.io/edgedelta/agent:v0.1.41
image: gcr.io/edgedelta/agent:v0.1.42
ports:
# port is exposed to be scraped by prometheus.
- name: metrics
Expand Down
15 changes: 15 additions & 0 deletions on-prem-rehydration/README.md
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)
49 changes: 49 additions & 0 deletions on-prem-rehydration/on-prem-rehydration-function.yml
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 on-prem-rehydration/on-prem-rehydration-handler-faasless.yml
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
20 changes: 20 additions & 0 deletions on-prem-rehydration/on-prem-rehydration-helm-values.yml
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 on-prem-rehydration/on-prem-rehydration-poller-faasless.yml
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
46 changes: 46 additions & 0 deletions on-prem-rehydration/on-prem-rehydration-poller.yml
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

0 comments on commit e082308

Please sign in to comment.