Deploy Chainlink Node
Last updated
Was this helpful?
Was this helpful?
apiVersion: v1
kind: Secret
metadata:
name: my-password
stringData:
password: fE2xXKDnR3ns489X# create self-signed certificate issuer
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: self-signed-issuer
spec:
selfSigned: {}
---
# create certificate for chainlink node
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: chainlink-node-cert
spec:
dnsNames:
- "chainlink-node.svc"
- "chainlink-node.svc.cluster.local"
# store tls.crt and tls.key in this kubernetes secret
secretName: chainlink-node-cert
issuerRef:
name: self-signed-issuerapiVersion: chainlink.kotal.io/v1alpha1
kind: Node
metadata:
name: chainlink-node
spec:
ethereumChainId: 4
ethereumWsEndpoint: "ws://besu-rinkeby-node:8546"
linkContractAddress: "0x01BE23585060835E02B77ef475b0Cc51aA1e0709"
databaseURL: "postgresql://username:password@server:port/name"
keystorePasswordSecretName: "my-password"
certSecretName: "chainlink-node-cert"
apiCredentials:
email: "mostafa@kotal.co"
passwordSecretName: "my-password"kubectl apply -f chainlink.yamlkubectl get nodes.chainlinkNAME CLIENT EthereumChainId
chainlink-node chainlink 4NAME CLIENT EthereumChainId LinkContractAddress
chainlink-node chainlink 4 0x01BE23585060835E02B77ef475b0Cc51aA1e0709kubectl get podsNAME READY STATUS RESTARTS AGE
chainlink-node-0 1/1 Running 0 1mkubectl logs -f chainlink-node-0kubectl port-forward chainlink-node-0 6688kubectl delete -f chainlink.yaml
node.chainlink.kotal.io "chainlink-node" deleted