Kubernetes

  1. Create a Kubernetes Deployment manifest. Replace <VERSION> with the desired version:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: decentralized-feeder
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: decentralized-feeder
  template:
    metadata:
      labels:
        app: decentralized-feeder
    spec:
      containers:
      - name: feeder-container
        image: diadata/decentralized-feeder:<VERSION>
        env:
        - name: PRIVATE_KEY
          valueFrom:
            secretKeyRef: {key: private_key_secret, name: private_key_secret}
        - name: NODE_OPERATOR_NAME
          value: ""
        - name: DEPLOYED_CONTRACT
          value: ""
        - name: CHAIN_ID
          value: ""
        - name: EXCHANGEPAIRS
          value: ""
        - name: PUSHGATEWAY_URL 
          value: ""
        - name: PUSHGATEWAY_USER 
          value: ""
        - name: PUSHGATEWAY_PASSWORD 
          value: ""
        - containerPort: 8080

For additional environment variable configurations, refer to Adding Exchange Pairs and Watchdog environment variables.

  1. Run the feeder with DEPLOYED_CONTRACT set to an empty string ("") in the Kubernetes manifest.

kubectl apply -f deployment.yaml
  1. Monitor the logs for the deployed contract address. See the expected logs here.

kubectl logs <pod-name>
  1. Update the DEPLOYED_CONTRACT value in the manifest with the retrieved contract address.

  2. Apply the updated manifest:

kubectl apply -f deployment.yaml

Last updated