This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "ext-ns-metadata" | |
| version = "0.1.0" | |
| authors = ["Linkerd Authors <cncf-linkerd-dev@lists.cncf.io>"] | |
| edition = "2021" | |
| license = "Apache-2.0" | |
| publish = false | |
| [dependencies] | |
| anyhow = "1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| zones=(a b c) | |
| cluster_cidr() { | |
| echo "apiVersion: networking.k8s.io/v1alpha1 | |
| kind: ClusterCIDR | |
| metadata: | |
| name: new-cidr | |
| spec: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use anyhow::{bail, Result}; | |
| use clap::Parser; | |
| use futures_util::StreamExt; | |
| use kube::runtime::watcher; | |
| use k8s_openapi::api::core::v1::Pod; | |
| #[derive(Parser)] | |
| #[command(version)] | |
| struct Args { | |
| #[arg( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install the gateway API CRDs | |
| $ kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.2.1/experimental-install.yaml | |
| # install linkerd CRDs | |
| $ linkerd install --crds | kubectl apply -f - | |
| # install linkerd-cni | |
| $ linkerd install-cni | kubectl apply -f - | |
| # install linkerd-control-plane |
OlderNewer