This file has been truncated, but you can view the full file.
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 |
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
| #!/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
| [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
| #!/bin/bash | |
| set -euxo pipefail | |
| # Set the linkerd binary to use. | |
| LINKERD_CLI=linkerd | |
| # create the local k8s cluster. Either k3d or kind can be used. | |
| k3d cluster create --k3s-server-arg "--disable=traefik" | |
| # kind create cluster |
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
| time="2020-05-20T17:30:30Z" level=info msg="caches synced" | |
| time="2020-05-20T17:30:30Z" level=debug msg="Received: OprhanedServicesGcTriggered: {}" apiAddress="https://192.168.0.227:6443" cluster=macbook | |
| time="2020-05-20T17:30:30Z" level=debug msg="Received: OnAddCalled: {svc: Service: {name: linkerd-controller-api, namespace: linkerd, annotations: [[linkerd.io/created-by=linkerd/cli edge-20.5.3]], labels [[linkerd.io/control-plane-ns=linkerd,linkerd.io/control-plane-compon | |
| ent=controller]]}}" apiAddress="https://192.168.0.227:6443" cluster=macbook |
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
| time="2020-05-20T16:36:03Z" level=debug msg="Gateway is healthy" probe-key=linkerd-multicluster-linkerd-gateway-macbook | |
| I0520 16:36:05.363727 1 reflector.go:268] pkg/mod/k8s.io/client-go@v0.17.4/tools/cache/reflector.go:105: forcing resync | |
| time="2020-05-20T16:36:05Z" level=debug msg="Received: OnUpdateCalled: {svc: Service: {name: linkerd-prometheus, namespace: linkerd, annotations: [[linkerd.io/created-by=linkerd/cli edge-20.5.3]], labels [[linkerd.io/control-plane-component=prometheus,linkerd.io/control-pla | |
| ne-ns=linkerd]]}}" apiAddress="https://192.168.0.227:6443" cluster=macbook |
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
| diff --git a/controller/api/destination/watcher/endpoints_watcher.go b/controller/api/destination/watcher/endpoints_watcher.go | |
| index 1d04a747..afaa98af 100644 | |
| --- a/controller/api/destination/watcher/endpoints_watcher.go | |
| +++ b/controller/api/destination/watcher/endpoints_watcher.go | |
| @@ -46,8 +46,7 @@ type ( | |
| // RemoteGatewayAddress is a an address points to a remote gateway | |
| RemoteGatewayAddress struct { | |
| - IP string | |
| - Port Port |
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
| { | |
| "global": { | |
| "clusterDomain": .ClusterDomain, | |
| "imagePullPolicy": .ImagePullPolicy, | |
| "linkerdVersion": .LinkerdVersion, | |
| "namespace": .Namespace, | |
| "identityTrustAnchorsPEM": .Identity.TrustAnchorsPEM, | |
| "identityTrustDomain": .Identity.TrustDomain, | |
| "proxy": { | |
| "enableExternalProfiles": .Proxy.EnableExternalProfiles, |
NewerOlder