Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(kuma-cp) Introduce ZoneIngress #2147

Merged
merged 22 commits into from
Jun 14, 2021
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
324 changes: 324 additions & 0 deletions api/mesh/v1alpha1/zone_ingress.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions api/mesh/v1alpha1/zone_ingress.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
syntax = "proto3";

package kuma.mesh.v1alpha1;

option go_package = "github.com/kumahq/kuma/api/mesh/v1alpha1";

import "mesh/v1alpha1/metrics.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "validate/validate.proto";

// ZoneIngress allows us to configure dataplane in the Ingress mode. In this
// mode, dataplane has only inbound interfaces. Every inbound interface matches
// with services that reside in that cluster.
message ZoneIngress {
// Address on which inbound listener will be exposed
string address = 1;
lobkovilya marked this conversation as resolved.
Show resolved Hide resolved

// AdvertisedAddress defines IP or DNS name on which ZoneIngress is accessible
// to other Kuma clusters.
string advertisedAddress = 2;

// Port of the inbound interface that will forward requests to the service.
uint32 port = 3;

// AdvertisedPort defines port on which ZoneIngress is accessible to other
// Kuma clusters.
uint32 advertisedPort = 4;

// Zone field contains Zone name where ingress is serving, field will be
// automatically set by Global Kuma CP
string zone = 6;
lobkovilya marked this conversation as resolved.
Show resolved Hide resolved

message AvailableService {
// tags of the service
map<string, string> tags = 1;
// number of instances available for given tags
uint32 instances = 2;
// mesh of the instances available for given tags
string mesh = 3;
}

// AvailableService contains tags that represent unique subset of
// endpoints
repeated AvailableService availableServices = 5;
}
Loading