Skip to content

Commit be43996

Browse files
Merge pull request #1304 from Chia-Network/k8s-deploy1
Add yaml package to dockerfile
2 parents be1fcbc + d9c7198 commit be43996

File tree

2 files changed

+108
-1
lines changed

2 files changed

+108
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ COPY src /app/src/
1111
COPY tests /app/tests/
1212
WORKDIR /app
1313

14-
RUN npm install && npm install -g @babel/cli @babel/preset-env yaml
14+
RUN npm install && npm install yaml
1515

1616
RUN mkdir -p /root/.chia/mainnet/config/ssl && mkdir -p /root/.chia/mainnet/cadt/v1
1717

k8s/values.yaml.j2

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Default values for generic.
2+
# This is a YAML-formatted file.
3+
# Declare variables to be passed into your templates.
4+
5+
replicaCount: 1
6+
7+
# This is considered the primary container in the deployment
8+
# Ingress/Service will point here
9+
image:
10+
repository: ghcr.io/chia-network/cadt
11+
tag: latest
12+
13+
deployment:
14+
containerPort: 31310
15+
containerPortName: http
16+
strategy:
17+
type: Recreate
18+
lifecycle: {}
19+
20+
service:
21+
enabled: true
22+
port: 80
23+
24+
ingress:
25+
enabled: true
26+
className: "cadt-testing-governance"
27+
annotations:
28+
kubernetes.io/ingress.class: nginx
29+
kubernetes.io/tls-acme: "true"
30+
hosts:
31+
- host: chart-example.local
32+
paths:
33+
- path: /
34+
pathType: Prefix
35+
tlsEnabled: true
36+
37+
networkPolicy:
38+
enabled: false
39+
policyTypes: []
40+
# - Egress
41+
# - Ingress
42+
egressRules: []
43+
# - to:
44+
# - namespaceSelector:
45+
# matchLabels:
46+
# kubernetes.io/metadata.name: chia-blockchain
47+
# ports:
48+
# - protocol: TCP
49+
# port: 8555
50+
ingressRules: []
51+
# - from:
52+
# - namespaceSelector:
53+
# matchLabels:
54+
# kubernetes.io/metadata.name: chia-blockchain
55+
# ports:
56+
# - protocol: TCP
57+
# port: 8555
58+
59+
60+
# Creates a secret with the following values, and mounts as env into the main deployment container
61+
secretEnvironment: {}
62+
# MY_KEY: "My Value"
63+
64+
# These are secrets that already exist in the cluster, that still need to be added to the container environment
65+
externalSecretEnvironment: []
66+
# - name: "secret-name"
67+
68+
# Creates a secret with the following values, and mounts as a file into the main deployment container
69+
secretFile:
70+
mountPath: "/etc/secrets"
71+
values: {}
72+
stringValues: {}
73+
# filename: "file content"
74+
# Certain cases only need a single file mounted, and its beneficial to not shadow the directory it's mounted on top of
75+
# subPath: "file.ext"
76+
77+
# This is the newer alternative to secretFile that mounts each file in the secret as a single file
78+
# rather than overtaking the whole mountPath directory and deleting any files that may have existed there prior
79+
# This also allows the flexibility of mounting many files to different mountpaths, since the mountpath is controlled
80+
# per file
81+
secretFiles: []
82+
# - mountPath: /etc/config
83+
# filename: .env
84+
# content: |
85+
# file=content
86+
# goes=here
87+
88+
89+
# Creates a configmap with the following values, and mounts as env into the main deployment container
90+
configmapEnvironment:
91+
LOG_LEVEL: "debug"
92+
BIND_ADDRESS: "0.0.0.0"
93+
WALLET_URL: "https://tdb:9256"
94+
DATALAYER_URL: "https://tbd:8562"
95+
CHIA_NETWORK: "testnet"
96+
IS_GOVERNANCE_BODY: "true"
97+
AUTO_MIRROR_EXTERNAL_STORES: "false"
98+
GOVERNANCE_BODY_ID: ""
99+
100+
volumes:
101+
- name: cadt-data
102+
mountPath: /root/.chia/mainnet/cadt/
103+
readOnly: false
104+
size: 8Gi
105+
storageClassName: ceph-nvme
106+
107+

0 commit comments

Comments
 (0)