Skip to content

Instantly share code, notes, and snippets.

@yourbuddyconner
Last active December 10, 2019 22:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save yourbuddyconner/82c07488a28ef81b5624184ca8934861 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: seed-one
namespace: default
labels:
app: seed
spec:
replicas: 1
selector:
matchLabels:
app: seed
template:
metadata:
labels:
app: seed
testnet: rising-phoenix
role: seed
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '10003'
prometheus.io/path: '/metrics'
spec:
hostname: seed-one
subdomain: seeds
containers:
- name: coda
resources:
limits:
memory: 6.5Gi
requests:
memory: 5Gi
image: codaprotocol/coda-daemon:0.0.11-beta
command: ["coda"]
args: [ "daemon",
"-log-level", "Info",
"-config-directory", "/root/.coda-config",
"-client-port", "$(DAEMON_CLIENT_PORT)",
"-rest-port", "$(DAEMON_REST_PORT)",
"-external-port", "$(DAEMON_EXTERNAL_PORT)",
"-discovery-port", "$(DAEMON_DISCOVERY_PORT)",
"-metrics-port", "$(DAEMON_METRICS_PORT)",
"-archive",
"-peer", "/dns4/peer1-$(CODA_TESTNET).o1test.net/tcp/8303/ipfs/12D3KooWHMmfuS9DmmK9eH4GC31arDhbtHEBQzX6PwPtQftxzwJs",
"-peer", "/dns4/peer2-$(CODA_TESTNET).o1test.net/tcp/8303/ipfs/12D3KooWAux9MAW1yAdD8gsDbYHmgVjRvdfYkpkfX7AnyGvQaRPF",
"-peer", "/dns4/peer3-$(CODA_TESTNET).o1test.net/tcp/8303/ipfs/12D3KooWCZA4pPWmDAkQf6riDQ3XMRN5k99tCsiRhBAPZCkA8re7"]
env:
- name: DAEMON_REST_PORT
value: "8304"
- name: DAEMON_CLIENT_PORT
value: "8301"
- name: DAEMON_METRICS_PORT
value: "10000"
- name: DAEMON_EXTERNAL_PORT
value: "10001"
- name: DAEMON_DISCOVERY_PORT
value: "10002"
- name: CODA_PRIVKEY_PASS
value: "testnet"
- name: CODA_TESTNET
value: "rising-phoenix"
ports:
- containerPort: 10001
hostPort: 10001
protocol: TCP
- containerPort: 10002
hostPort: 10002
protocol: TCP
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: seeds
spec:
selector:
app: seed
type: NodePort
ports:
- port: 10001
targetPort: 10001
name: gossip
- port: 10002
targetPort: 10002
name: discovery
---
apiVersion: networking.gke.io/v1beta1
kind: ManagedCertificate
metadata:
name: coda-proxy-connerswann-me
namespace: coda-testnet
spec:
domains:
- peer-one.rising-phoenix.connerswann.me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment