Beispiel #1
0
 def scale(self, replicas):
     for i in range(replicas):
         if not K8s.oke:
             K8s.create_pv(self.name, i, self.values["persistence"]["size"])
     os.system("kubectl scale --replicas=" + str(replicas) +
               " statefulset/" + self.name)
Beispiel #2
0
 def create(self):
     for i in range(self.replicas):
         if not K8s.oke:
             K8s.create_pv(self.name, i, self.values["persistence"]["size"])
     os.system("helm install --name {0} ../{0}".format(self.name))