Fix pod creation

This commit is contained in:
2018-11-27 14:58:45 -08:00
parent af1a57fbb7
commit f32abee569
2 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -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
+6 -1
View File
@@ -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=[],
)