Beispiel #1
0
        public void ScaleDeployment(int numberOfReplicas)
        {
            string kNameSpace     = GetNameSpaceFromYaml(ProjectDir, KubeDir);
            string deploymentName = MakeDeploymentName(Name);
            KuberntesConnection kubernetesConnection = new KuberntesConnection();

            kubernetesConnection.ScaleDeployment(deploymentName, numberOfReplicas, kNameSpace);
        }
        public void ScaleDeployment(KubernetesExtensionPackage package, int numberOfReplicas)
        {
            Microsoft.VisualStudio.Shell.ThreadHelper.ThrowIfNotOnUIThread();
            _package = package;

            string kNameSpace     = GetNameSpaceFromYaml();
            string deploymentName = MakeDeploymentName(package.GetCurrentProject().Name);
            KuberntesConnection kubernetesConnection = new KuberntesConnection();

            kubernetesConnection.ScaleDeployment(deploymentName, numberOfReplicas, kNameSpace);
        }
Beispiel #3
0
        public void ScaleDeployment(string deployment, int replicaCount)
        {
            KuberntesConnection kubernetesConnection = new KuberntesConnection();

            kubernetesConnection.ScaleDeployment(deployment, replicaCount, SelectedNameSpace.Name);
        }