-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* deploy rooch-faucet to k8s * switch to testnet
- Loading branch information
1 parent
3628788
commit 8e09fb8
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: rooch-faucet | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: rooch-faucet | ||
template: | ||
metadata: | ||
labels: | ||
app: rooch-faucet | ||
spec: | ||
initContainers: | ||
- name: init-rooch | ||
image: ghcr.io/rooch-network/rooch:v0.7.0 | ||
command: ["/bin/sh", "-c"] | ||
args: | ||
- | | ||
if [ ! -f /root/.rooch/initialized ]; then | ||
/rooch/rooch init -m "${INIT_SECRET}" --skip-password | ||
/rooch/rooch env switch --alias test | ||
ls -la /root/.rooch/rooch_config/ | ||
touch /root/.rooch/initialized | ||
fi | ||
env: | ||
- name: INIT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: rooch-faucet-secrets | ||
key: init-phrase | ||
volumeMounts: | ||
- name: rooch-data | ||
mountPath: /root | ||
containers: | ||
- name: rooch-faucet | ||
image: ghcr.io/rooch-network/rooch:v0.7.0 | ||
command: ["/rooch-faucet/rooch-faucet"] | ||
args: | ||
- "--discord-token" | ||
- "$(DISCORD_TOKEN)" | ||
- "--faucet-grant-amount" | ||
- "1000000000" | ||
env: | ||
- name: DISCORD_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: rooch-faucet-secrets | ||
key: discord-token | ||
volumeMounts: | ||
- name: rooch-data | ||
mountPath: /root | ||
volumes: | ||
- name: rooch-data | ||
persistentVolumeClaim: | ||
claimName: rooch-faucet-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: rooch-faucet-data | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |