mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-09-30 20:46:32 +00:00
Fix pod creation
This commit is contained in:
@@ -52,10 +52,10 @@ status:
|
||||
kubectl get pods -o yaml
|
||||
|
||||
logs:
|
||||
kubectl logs geth-$(net) -f
|
||||
kubectl logs geth-$(net)-044 -f
|
||||
|
||||
ssh:
|
||||
kubectl exec -it geth-$(net)-02 -- /bin/bash
|
||||
kubectl exec -it geth-$(net)-044 -- /bin/bash
|
||||
|
||||
attach:
|
||||
kubectl exec -it geth-$(net)-01 -- $(geth) attach
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import os.path
|
||||
|
||||
|
||||
class Dict(dict):
|
||||
def __init__(self, **kwargs):
|
||||
dict.__init__(self, **kwargs)
|
||||
@@ -108,8 +111,10 @@ class Blockchain(Pod):
|
||||
|
||||
self.metadata = Metadata(name=name, blockchain=blockchain, network=network)
|
||||
|
||||
client = os.path.basename(command)
|
||||
selector = client + '-' + network
|
||||
self.spec = Spec(
|
||||
nodeSelector={"cloud.google.com/gke-nodepool": network},
|
||||
nodeSelector={"cloud.google.com/gke-nodepool": selector},
|
||||
containers=[],
|
||||
volumes=[],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user