Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for etcdutil (0.18 sec)

  1. cluster/images/etcd/migrate/migrate_client.go

    	clientv3 "go.etcd.io/etcd/client/v3"
    	"google.golang.org/grpc"
    	"k8s.io/klog/v2"
    )
    
    // CombinedEtcdClient provides an implementation of EtcdMigrateClient using a combination of the etcd v2 client, v3 client
    // and etcdctl commands called via the shell.
    type CombinedEtcdClient struct {
    	cfg *EtcdMigrateCfg
    }
    
    // NewEtcdMigrateClient creates a new EtcdMigrateClient from the given EtcdMigrateCfg.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 15 13:53:06 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  2. cluster/images/etcd/migrate/options.go

    	flags.StringVar(&opts.binDir, "bin-dir", "/usr/local/bin",
    		"directory of etcd and etcdctl binaries, must contain etcd-<version> and etcdctl-<version> for each version listed in <bundled-versions>.")
    	flags.StringVar(&opts.dataDir, "data-dir", "",
    		"etcd data directory of etcd server to migrate. If unset fallbacks to DATA_DIRECTORY env.")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 09:59:52 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/test/integration/fixtures/server.go

    }
    
    // IntegrationEtcdServers returns etcd server URLs.
    func IntegrationEtcdServers() []string {
    	if etcdURL, ok := os.LookupEnv("KUBE_INTEGRATION_ETCD_URL"); ok {
    		return []string{etcdURL}
    	}
    	return []string{"http://127.0.0.1:2379"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. cluster/images/etcd/Dockerfile.windows

    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    ARG RUNNERIMAGE
    FROM ${RUNNERIMAGE}
    
    EXPOSE 2379 2380 4001 7001
    
    COPY etcd* etcdctl* /usr/local/bin/
    COPY migrate-if-needed.bat /usr/local/bin/
    COPY migrate /usr/local/bin/migrate.exe
    
    # NOTE(claudiub): docker buildx sets the PATH env variable to a Linux-like PATH,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 13 17:06:59 UTC 2023
    - 1K bytes
    - Viewed (0)
  5. cluster/gce/manifests/etcd.manifest

            "name": "ETCDCTL_API",
            "value": "3"
          }
            ],
        "livenessProbe": {
          "exec": {
            "command": [
              "/bin/sh",
              "-c",
              "set -x; exec /usr/local/bin/etcdctl --endpoints=127.0.0.1:{{ port }} {{ etcdctl_certs }} --command-timeout=15s endpoint health"
            ]
          },
          "initialDelaySeconds": {{ liveness_probe_initial_delay }},
          "timeoutSeconds": 15,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 03:36:35 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/registration_test.go

    				Metadata: Metadata{
    					Name:      "bar",
    					Namespace: "",
    				},
    			},
    		},
    	}
    
    	etcdURL, ok := os.LookupEnv("KUBE_INTEGRATION_ETCD_URL")
    	if !ok {
    		etcdURL = "http://127.0.0.1:2379"
    	}
    	cfg := clientv3.Config{
    		Endpoints: []string{etcdURL},
    	}
    	c, err := clientv3.New(cfg)
    	if err != nil {
    		t.Fatal(err)
    	}
    	kv := clientv3.NewKV(c)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 14 11:58:05 UTC 2022
    - 15.4K bytes
    - Viewed (0)
  7. .github/workflows/iam-integrations.yaml

            env:
              ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
              ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
            ports:
              - "2379:2379"
            options: >-
              --health-cmd "etcdctl endpoint health"
              --health-interval 10s
              --health-timeout 5s
              --health-retries 5
          openid:
            image: quay.io/minio/dex
            ports:
              - "5556:5556"
            env:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/phases/reset/removeetcdmember.go

    			if !r.DryRun() {
    				err := etcdphase.RemoveStackedEtcdMemberFromCluster(r.Client(), cfg)
    				if err != nil {
    					klog.Warningf("[reset] Failed to remove etcd member: %v, please manually remove this etcd member using etcdctl", err)
    				} else {
    					if err := CleanDir(etcdDataDir); err != nil {
    						klog.Warningf("[reset] Failed to delete contents of the etcd directory: %q, error: %v", etcdDataDir, err)
    					} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 11 08:02:50 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  9. cmd/healthcheck-handler.go

    				writeErrorResponse(r.Context(), w, toAPIError(r.Context(), err), r.URL)
    			}
    			return
    		}
    	}
    
    	if globalEtcdClient != nil {
    		// Borrowed from
    		// https://github.com/etcd-io/etcd/blob/main/etcdctl/ctlv3/command/ep_command.go#L118
    		ctx, cancel := context.WithTimeout(r.Context(), defaultContextTimeout)
    		defer cancel()
    		if _, err := globalEtcdClient.Get(ctx, "health"); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    	t.mux.RLock()
    	defer t.mux.RUnlock()
    	if t.closed {
    		return fmt.Errorf("closed")
    	}
    	// See https://github.com/etcd-io/etcd/blob/c57f8b3af865d1b531b979889c602ba14377420e/etcdctl/ctlv3/command/ep_command.go#L118
    	_, err := t.client.Get(ctx, path.Join("/", t.prefix, "health"))
    	if err != nil {
    		return fmt.Errorf("error getting data from etcd: %w", err)
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top