Created
May 19, 2020 18:55
-
-
Save marklnichols/2c7cb68bb5a6f5bf333890eef1742055 to your computer and use it in GitHub Desktop.
yaml file contents
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: tqtezos | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: tezos-pv-claim | |
namespace: tqtezos | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 15Gi | |
selector: | |
matchLabels: | |
storage-type: var-files | |
storageClassName: manual | |
--- | |
apiVersion: v1 | |
data: | |
config.json: '{"p2p": {"bootstrap-peers": [], "listen-addr": "[::]:9732", "expected-proof-of-work": | |
0}, "data-dir": "/var/tezos/node", "rpc": {"listen-addrs": [":8732"]}, "network": | |
{"chain_name": "PRIVATE_TUESDAY", "sandboxed_chain_name": "SANDBOXED_TEZOS", "default_bootstrap_peers": | |
[], "genesis": {"timestamp": "2020-05-19T17:54:31.422573+00:00", "block": "BLockGenesisGenesisGenesisGenesisGenesisd6f5afWyME7", | |
"protocol": "PtYuensgYBb3G3x1hLLbCmcav8ue8Kyd2khADcL5LsT5R1hcXex"}, "genesis_parameters": | |
{"values": {"genesis_pubkey": "edpktwkArySEAGBCRWYnb6MsyQJsj8BPT1XaAa634oDZpqGDNo3rsd"}}}}' | |
parameters.json: '{"bootstrap_accounts": [["edpkuGDWskAJVGvekgYuBiRo1XxpdZMPrXL5GaQ8ohK7GncXFVeEhg", | |
"4000000000000"], ["edpktshL6zyEuypWJwgR69ayZguNiRnRZU66swPC4PpJLuRdRoAdhx", "4000000000000"], | |
["edpkuPE2HcaH6oYdJbp9gNYLWMSW3mDp9Epj6m2YhCsPXhKUgEHVhx", "4000000000000"]], | |
"preserved_cycles": 2, "blocks_per_cycle": 8, "blocks_per_commitment": 4, "blocks_per_roll_snapshot": | |
4, "blocks_per_voting_period": 64, "time_between_blocks": ["10", "20"], "endorsers_per_block": | |
32, "hard_gas_limit_per_operation": "800000", "hard_gas_limit_per_block": "8000000", | |
"proof_of_work_threshold": "0", "tokens_per_roll": "8000000000", "michelson_maximum_type_size": | |
1000, "seed_nonce_revelation_tip": "125000", "origination_size": 257, "block_security_deposit": | |
"512000000", "endorsement_security_deposit": "64000000", "endorsement_reward": | |
["2000000"], "cost_per_byte": "1000", "hard_storage_limit_per_operation": "60000", | |
"test_chain_duration": "1966080", "quorum_min": 2000, "quorum_max": 7000, "min_proposal_quorum": | |
500, "initial_endorsers": 1, "delay_per_missing_endorsement": "1", "baking_reward_per_endorsement": | |
["200000"]}' | |
kind: ConfigMap | |
metadata: | |
name: tezos-config | |
namespace: tqtezos | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: tezos-rpc | |
namespace: tqtezos | |
spec: | |
ports: | |
- port: 8732 | |
selector: | |
app: tezos-node | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: tezos-net | |
namespace: tqtezos | |
spec: | |
ports: | |
- port: 9732 | |
selector: | |
app: tezos-node | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: tezos-node | |
namespace: tqtezos | |
spec: | |
selector: | |
matchLabels: | |
app: tezos-node | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: | |
app: tezos-node | |
spec: | |
containers: | |
- args: | |
- run | |
- --config-file | |
- /etc/tezos/config.json | |
command: | |
- /usr/local/bin/tezos-node | |
image: tezos/tezos:v7-release | |
imagePullPolicy: Always | |
name: tezos-node | |
ports: | |
- containerPort: 8732 | |
name: tezos-rpc | |
- containerPort: 9732 | |
name: tezos-net | |
readinessProbe: | |
exec: | |
command: | |
- nc | |
- -z | |
- 127.0.0.1 | |
- '8732' | |
initialDelaySeconds: 2 | |
periodSeconds: 2 | |
timeoutSeconds: 1 | |
volumeMounts: | |
- mountPath: /etc/tezos | |
name: config-volume | |
- mountPath: /var/tezos | |
name: var-volume | |
- args: | |
- -A | |
- tezos-rpc | |
- -P | |
- '8732' | |
- -d | |
- /var/tezos/client | |
- run | |
- with | |
- local | |
- node | |
- /var/tezos/node | |
- baker | |
command: | |
- tezos-baker-006-PsCARTHA | |
image: tezos/tezos:v7-release | |
name: baker-job | |
volumeMounts: | |
- mountPath: /var/tezos | |
name: var-volume | |
initContainers: | |
- args: | |
- identity | |
- generate | |
- '0' | |
- --data-dir | |
- /var/tezos/node | |
- --config-file | |
- /etc/tezos/config.json | |
command: | |
- /usr/local/bin/tezos-node | |
image: tezos/tezos:v7-release | |
name: identity-job | |
volumeMounts: | |
- mountPath: /etc/tezos | |
name: config-volume | |
- mountPath: /var/tezos | |
name: var-volume | |
volumes: | |
- configMap: | |
name: tezos-config | |
name: config-volume | |
- name: var-volume | |
persistentVolumeClaim: | |
claimName: tezos-pv-claim | |
--- | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
labels: | |
storage-type: var-files | |
name: tezos-var-volume | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
capacity: | |
storage: 15Gi | |
nfs: | |
path: /Users/mark/.tq/ | |
server: 192.168.64.1 | |
persistentVolumeReclaimPolicy: Retain | |
storageClassName: manual | |
--- | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: activate-job | |
namespace: tqtezos | |
spec: | |
template: | |
metadata: | |
name: activate-job | |
spec: | |
containers: | |
- command: | |
- sh | |
- -c | |
- echo "private chain activated" | |
image: busybox | |
name: job-done | |
initContainers: | |
- command: | |
- sh | |
- -c | |
- until nslookup tezos-rpc; do echo waiting for tezos-rpc; sleep 2; done; | |
image: busybox | |
name: wait-for-node | |
- args: | |
- -A | |
- tezos-rpc | |
- -P | |
- '8732' | |
- -d | |
- /var/tezos/client | |
- -l | |
- --block | |
- genesis | |
- activate | |
- protocol | |
- PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb | |
- with | |
- fitness | |
- '25' | |
- and | |
- key | |
- genesis | |
- and | |
- parameters | |
- /etc/tezos/parameters.json | |
command: | |
- /usr/local/bin/tezos-client | |
image: tezos/tezos:v7-release | |
name: activate | |
volumeMounts: | |
- mountPath: /etc/tezos | |
name: config-volume | |
- mountPath: /var/tezos | |
name: var-volume | |
- args: | |
- -A | |
- tezos-rpc | |
- -P | |
- '8732' | |
- -d | |
- /var/tezos/client | |
- -l | |
- bake | |
- for | |
- baker | |
- --minimal-timestamp | |
command: | |
- /usr/local/bin/tezos-client | |
image: tezos/tezos:v7-release | |
name: bake-once | |
volumeMounts: | |
- mountPath: /etc/tezos | |
name: config-volume | |
- mountPath: /var/tezos | |
name: var-volume | |
restartPolicy: Never | |
volumes: | |
- configMap: | |
name: tezos-config | |
name: config-volume | |
- name: var-volume | |
persistentVolumeClaim: | |
claimName: tezos-pv-claim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment