Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ansible/roles/ssc/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
- name: Expand kubeconfig file path
set_fact:
kubeconfig_file: "{{ kubeconfig_file | expanduser }}"

- name: Deploy SSC
kubernetes.core.k8s:
state: present
Expand Down
17 changes: 15 additions & 2 deletions ansible/roles/ssc/templates/ssc-deploy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,27 @@ spec:
- name: OPTS
value: "{{ ssc_start_args }}"
- name: DENOM
value: "{{ ssc.denom }}"
value: "{{ ssc.denom | default(ssc_denom) }}"
- name: GENESIS
value: "{{ ssc_genesis }}"
value: "{{ ssc_genesis_url | default(ssc_genesis) }}"
- name: LOGLEVEL
value: "info"
- name: PEERS
value: "{{ ssc_peers }}"
- name: EXTERNAL_ADDRESS
value: "{{ ssc_external_address }}:26656"
{% if statesync_enabled and ssc_rpc_servers is defined %}
- name: STATE_SYNC_ENABLED
value: "true"
- name: SNAPSHOT_TRUST_INTERVAL
value: "{{ statesync_trust_interval }}"
- name: SYNC_RPC
value: "{{ ssc_rpc_servers | join(',') }}"
{% endif %}
{% if snapshot_interval is defined %}
- name: SNAPSHOT_INTERVAL
value: "{{ snapshot_interval }}"
{% endif %}
ports:
- containerPort: 26657
name: rpc
Expand All @@ -79,6 +91,7 @@ spec:
name: grpc
- containerPort: 26660
name: metrics
command: ["/bin/sh", "/scripts/start.sh"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we even need a custom start script? SSC already has one (meant for the controller) that can already be used. We just need to have a way to generate the genesis and provide peers.

volumeMounts:
- name: ssc-data
mountPath: /root/.ssc
Expand Down
Loading