LogoLogo
WebsiteDIA AppRequest integration
  • DIA Oracles Overview
  • Intro to Lumina
    • How it works
    • Integrated chains
  • Data products & Tools
    • Token price feeds
  • Oracle Builder (Beta)
  • How-to guides
    • Fetch price data
      • Push based oracles
      • Pull based oracles
      • Contract Addresses
    • Run a Feeder
      • Hardware specs
      • Setting up the node
        • Docker compose
        • Docker run
        • Kubernetes
    • Stake DIA
    • Request a custom oracle
  • Reference
    • Architecture
      • Data sourcing
      • Data computation
      • Data delivery
    • Cross-chain Messaging
  • Resources
    • Audits
    • Chain information
    • Nexus Documentation
    • Community & Support
    • T&C
      • Licence Agreement
      • Contributor Covenant Code of Conduct
      • Disclaimer
Powered by GitBook
On this page
  1. How-to guides
  2. Run a Feeder
  3. Setting up the node

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
  1. Run the feeder with DEPLOYED_CONTRACT set to an empty string ("") in the Kubernetes manifest.

kubectl apply -f deployment.yaml
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
PreviousDocker runNextStake DIA

Last updated 1 month ago

For additional environment variable configurations, refer to and .

Monitor the logs for the deployed contract address. See the expected logs .

Adding Exchange Pairs
Watchdog environment variables
here