This repository was archived by the owner on Jan 26, 2023. It is now read-only.
File tree 1 file changed +19
-2
lines changed
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -134,12 +134,29 @@ This is useful for stopping and garbage collecting a job in Nomad immediately.
134
134
nomad job stop -purge " <jobname>"
135
135
```
136
136
137
- #### Count Primary Nodes
137
+ #### Count Primary Redis Nodes
138
138
``` shell
139
139
redis-cli -p < tls-port> --tls --cert ./example/tls/redis/cert.pem --key ./example/tls/redis/key.pem --cacert ./example/tls/ca-cert.pem --user replication-user --pass < redis-password> cluster nodes | grep master | wc -l
140
140
```
141
141
142
- #### Count Replica Nodes
142
+ #### Count Replica Redis Nodes
143
143
``` shell
144
144
redis-cli -p < tls-port> --tls --cert ./example/tls/redis/cert.pem --key ./example/tls/redis/key.pem --cacert ./example/tls/ca-cert.pem --user replication-user --pass < redis-password> cluster nodes | grep slave | wc -l
145
145
```
146
+
147
+ #### Create New Consul CA-Cert and Key
148
+ ``` shell
149
+ consul tls ca create
150
+ ```
151
+
152
+ #### Create and Sign New Consul Server Cert and Key
153
+ In the same directory as the CA Cert:
154
+ ``` shell
155
+ consul tls cert create -client -dc " dev-general"
156
+ ```
157
+
158
+ #### Create and Sign New Consul Client Cert and Key
159
+ In the same directory as the CA Cert:
160
+ ``` shell
161
+ consul tls cert create -server -dc " dev-general"
162
+ ```
You can’t perform that action at this time.
0 commit comments