Remove `--api-port` flag from the cli (#2429)

* Changed the protobuf definition to take out destinationApiPort entirely
* Store destinationAPIPort as a constant in pkg/inject.go

Fixes #2351

Signed-off-by: Aditya Sharma <hello@adi.run>
This commit is contained in:
Aditya Sharma 2019-03-06 18:54:12 -05:00 committed by Ivan Sim
parent 1bb60e2bc5
commit 3740aa238a
16 changed files with 90 additions and 111 deletions

View File

@ -86,8 +86,8 @@ spec:
{{.Values.ControllerComponentLabel}}: controller {{.Values.ControllerComponentLabel}}: controller
ports: ports:
- name: grpc - name: grpc
port: {{.Values.DestinationAPIPort}} port: 8086
targetPort: {{.Values.DestinationAPIPort}} targetPort: 8086
--- ---
kind: Deployment kind: Deployment
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
@ -143,14 +143,14 @@ spec:
- name: destination - name: destination
ports: ports:
- name: grpc - name: grpc
containerPort: {{.Values.DestinationAPIPort}} containerPort: 8086
- name: admin-http - name: admin-http
containerPort: 9996 containerPort: 9996
image: {{.Values.ControllerImage}} image: {{.Values.ControllerImage}}
imagePullPolicy: {{.Values.ImagePullPolicy}} imagePullPolicy: {{.Values.ImagePullPolicy}}
args: args:
- "destination" - "destination"
- "-addr=:{{.Values.DestinationAPIPort}}" - "-addr=:8086"
- "-controller-namespace={{.Values.Namespace}}" - "-controller-namespace={{.Values.Namespace}}"
- "-enable-tls={{.Values.EnableTLS}}" - "-enable-tls={{.Values.EnableTLS}}"
- "-enable-h2-upgrade={{.Values.EnableH2Upgrade}}" - "-enable-h2-upgrade={{.Values.EnableH2Upgrade}}"

View File

@ -278,7 +278,6 @@ func injectOptionsToConfigs(options *injectOptions) configs {
ImageName: registryOverride(options.initImage, options.dockerRegistry), ImageName: registryOverride(options.initImage, options.dockerRegistry),
PullPolicy: options.imagePullPolicy, PullPolicy: options.imagePullPolicy,
}, },
DestinationApiPort: &config.Port{Port: uint32(options.destinationAPIPort)},
ControlPort: &config.Port{Port: uint32(options.proxyControlPort)}, ControlPort: &config.Port{Port: uint32(options.proxyControlPort)},
IgnoreInboundPorts: ignoreInboundPorts, IgnoreInboundPorts: ignoreInboundPorts,
IgnoreOutboundPorts: ignoreOutboundPorts, IgnoreOutboundPorts: ignoreOutboundPorts,

View File

@ -37,7 +37,6 @@ type installConfig struct {
ControllerLogLevel string ControllerLogLevel string
ControllerComponentLabel string ControllerComponentLabel string
CreatedByAnnotation string CreatedByAnnotation string
DestinationAPIPort uint
EnableTLS bool EnableTLS bool
TLSTrustAnchorConfigMapName string TLSTrustAnchorConfigMapName string
ProxyContainerName string ProxyContainerName string
@ -170,7 +169,6 @@ func validateAndBuildConfig(options *installOptions) (*installConfig, error) {
ControllerComponentLabel: k8s.ControllerComponentLabel, ControllerComponentLabel: k8s.ControllerComponentLabel,
ControllerUID: options.controllerUID, ControllerUID: options.controllerUID,
CreatedByAnnotation: k8s.CreatedByAnnotation, CreatedByAnnotation: k8s.CreatedByAnnotation,
DestinationAPIPort: options.destinationAPIPort,
EnableTLS: options.enableTLS(), EnableTLS: options.enableTLS(),
TLSTrustAnchorConfigMapName: k8s.TLSTrustAnchorConfigMapName, TLSTrustAnchorConfigMapName: k8s.TLSTrustAnchorConfigMapName,
ProxyContainerName: k8s.ProxyContainerName, ProxyContainerName: k8s.ProxyContainerName,
@ -326,9 +324,6 @@ func proxyConfig(options *installOptions) *config.Proxy {
ImageName: registryOverride(options.initImage, options.dockerRegistry), ImageName: registryOverride(options.initImage, options.dockerRegistry),
PullPolicy: options.imagePullPolicy, PullPolicy: options.imagePullPolicy,
}, },
DestinationApiPort: &config.Port{
Port: uint32(options.destinationAPIPort),
},
ControlPort: &config.Port{ ControlPort: &config.Port{
Port: uint32(options.proxyControlPort), Port: uint32(options.proxyControlPort),
}, },

View File

@ -36,7 +36,6 @@ func TestRender(t *testing.T) {
ControllerLogLevel: "ControllerLogLevel", ControllerLogLevel: "ControllerLogLevel",
ControllerComponentLabel: "ControllerComponentLabel", ControllerComponentLabel: "ControllerComponentLabel",
CreatedByAnnotation: "CreatedByAnnotation", CreatedByAnnotation: "CreatedByAnnotation",
DestinationAPIPort: 123,
EnableTLS: true, EnableTLS: true,
TLSTrustAnchorConfigMapName: "TLSTrustAnchorConfigMapName", TLSTrustAnchorConfigMapName: "TLSTrustAnchorConfigMapName",
ProxyContainerName: "ProxyContainerName", ProxyContainerName: "ProxyContainerName",
@ -66,7 +65,6 @@ func TestRender(t *testing.T) {
ControllerLogLevel: "ControllerLogLevel", ControllerLogLevel: "ControllerLogLevel",
ControllerComponentLabel: "ControllerComponentLabel", ControllerComponentLabel: "ControllerComponentLabel",
CreatedByAnnotation: "CreatedByAnnotation", CreatedByAnnotation: "CreatedByAnnotation",
DestinationAPIPort: 123,
ControllerUID: 2103, ControllerUID: 2103,
EnableTLS: true, EnableTLS: true,
TLSTrustAnchorConfigMapName: "TLSTrustAnchorConfigMapName", TLSTrustAnchorConfigMapName: "TLSTrustAnchorConfigMapName",

View File

@ -256,7 +256,6 @@ type proxyConfigOptions struct {
ignoreOutboundPorts []uint ignoreOutboundPorts []uint
proxyUID int64 proxyUID int64
proxyLogLevel string proxyLogLevel string
destinationAPIPort uint
proxyControlPort uint proxyControlPort uint
proxyMetricsPort uint proxyMetricsPort uint
proxyCPURequest string proxyCPURequest string
@ -287,7 +286,6 @@ func newProxyConfigOptions() *proxyConfigOptions {
ignoreOutboundPorts: nil, ignoreOutboundPorts: nil,
proxyUID: 2102, proxyUID: 2102,
proxyLogLevel: "warn,linkerd2_proxy=info", proxyLogLevel: "warn,linkerd2_proxy=info",
destinationAPIPort: 8086,
proxyControlPort: 4190, proxyControlPort: 4190,
proxyMetricsPort: 4191, proxyMetricsPort: 4191,
proxyCPURequest: "", proxyCPURequest: "",
@ -310,7 +308,6 @@ func newConfig() configs {
proxyConfig := &config.Proxy{ proxyConfig := &config.Proxy{
ProxyImage: &config.Image{ImageName: defaultDockerRegistry + "/proxy", PullPolicy: "IfNotPresent"}, ProxyImage: &config.Image{ImageName: defaultDockerRegistry + "/proxy", PullPolicy: "IfNotPresent"},
ProxyInitImage: &config.Image{ImageName: defaultDockerRegistry + "/proxy-init", PullPolicy: "IfNotPresent"}, ProxyInitImage: &config.Image{ImageName: defaultDockerRegistry + "/proxy-init", PullPolicy: "IfNotPresent"},
DestinationApiPort: &config.Port{Port: 8086},
ControlPort: &config.Port{Port: 4190}, ControlPort: &config.Port{Port: 4190},
IgnoreInboundPorts: nil, IgnoreInboundPorts: nil,
IgnoreOutboundPorts: nil, IgnoreOutboundPorts: nil,
@ -413,7 +410,6 @@ func addProxyConfigFlags(cmd *cobra.Command, options *proxyConfigOptions) {
cmd.PersistentFlags().UintSliceVar(&options.ignoreOutboundPorts, "skip-outbound-ports", options.ignoreOutboundPorts, "Outbound ports that should skip the proxy") cmd.PersistentFlags().UintSliceVar(&options.ignoreOutboundPorts, "skip-outbound-ports", options.ignoreOutboundPorts, "Outbound ports that should skip the proxy")
cmd.PersistentFlags().Int64Var(&options.proxyUID, "proxy-uid", options.proxyUID, "Run the proxy under this user ID") cmd.PersistentFlags().Int64Var(&options.proxyUID, "proxy-uid", options.proxyUID, "Run the proxy under this user ID")
cmd.PersistentFlags().StringVar(&options.proxyLogLevel, "proxy-log-level", options.proxyLogLevel, "Log level for the proxy") cmd.PersistentFlags().StringVar(&options.proxyLogLevel, "proxy-log-level", options.proxyLogLevel, "Log level for the proxy")
cmd.PersistentFlags().UintVar(&options.destinationAPIPort, "api-port", options.destinationAPIPort, "Port where the Linkerd controller's destination API is running")
cmd.PersistentFlags().UintVar(&options.proxyControlPort, "control-port", options.proxyControlPort, "Proxy port to use for control") cmd.PersistentFlags().UintVar(&options.proxyControlPort, "control-port", options.proxyControlPort, "Proxy port to use for control")
cmd.PersistentFlags().UintVar(&options.proxyMetricsPort, "metrics-port", options.proxyMetricsPort, "Proxy port to serve metrics on") cmd.PersistentFlags().UintVar(&options.proxyMetricsPort, "metrics-port", options.proxyMetricsPort, "Proxy port to serve metrics on")
cmd.PersistentFlags().StringVar(&options.proxyCPURequest, "proxy-cpu-request", options.proxyCPURequest, "Amount of CPU units that the proxy sidecar requests") cmd.PersistentFlags().StringVar(&options.proxyCPURequest, "proxy-cpu-request", options.proxyCPURequest, "Amount of CPU units that the proxy sidecar requests")

View File

@ -273,7 +273,7 @@ data:
global: | global: |
{"linkerdNamespace":"linkerd","cniEnabled":false,"version":"dev-undefined","identityContext":null} {"linkerdNamespace":"linkerd","cniEnabled":false,"version":"dev-undefined","identityContext":null}
proxy: | proxy: |
{"proxyImage":{"imageName":"gcr.io/linkerd-io/proxy","pullPolicy":"IfNotPresent"},"proxyInitImage":{"imageName":"gcr.io/linkerd-io/proxy-init","pullPolicy":"IfNotPresent"},"destinationApiPort":{"port":8086},"controlPort":{"port":4190},"ignoreInboundPorts":[],"ignoreOutboundPorts":[],"inboundPort":{"port":4143},"metricsPort":{"port":4191},"outboundPort":{"port":4140},"resource":{"requestCpu":"","requestMemory":"","limitCpu":"","limitMemory":""},"proxyUid":"2102","logLevel":{"level":"warn,linkerd2_proxy=info"},"disableExternalProfiles":false} {"proxyImage":{"imageName":"gcr.io/linkerd-io/proxy","pullPolicy":"IfNotPresent"},"proxyInitImage":{"imageName":"gcr.io/linkerd-io/proxy-init","pullPolicy":"IfNotPresent"},"controlPort":{"port":4190},"ignoreInboundPorts":[],"ignoreOutboundPorts":[],"inboundPort":{"port":4143},"metricsPort":{"port":4191},"outboundPort":{"port":4140},"resource":{"requestCpu":"","requestMemory":"","limitCpu":"","limitMemory":""},"proxyUid":"2102","logLevel":{"level":"warn,linkerd2_proxy=info"},"disableExternalProfiles":false}
--- ---
### ###

View File

@ -285,7 +285,7 @@ data:
global: | global: |
{"linkerdNamespace":"linkerd","cniEnabled":false,"version":"dev-undefined","identityContext":null} {"linkerdNamespace":"linkerd","cniEnabled":false,"version":"dev-undefined","identityContext":null}
proxy: | proxy: |
{"proxyImage":{"imageName":"gcr.io/linkerd-io/proxy","pullPolicy":"IfNotPresent"},"proxyInitImage":{"imageName":"gcr.io/linkerd-io/proxy-init","pullPolicy":"IfNotPresent"},"destinationApiPort":{"port":8086},"controlPort":{"port":4190},"ignoreInboundPorts":[],"ignoreOutboundPorts":[],"inboundPort":{"port":4143},"metricsPort":{"port":4191},"outboundPort":{"port":4140},"resource":{"requestCpu":"10m","requestMemory":"20Mi","limitCpu":"","limitMemory":""},"proxyUid":"2102","logLevel":{"level":"warn,linkerd2_proxy=info"},"disableExternalProfiles":false} {"proxyImage":{"imageName":"gcr.io/linkerd-io/proxy","pullPolicy":"IfNotPresent"},"proxyInitImage":{"imageName":"gcr.io/linkerd-io/proxy-init","pullPolicy":"IfNotPresent"},"controlPort":{"port":4190},"ignoreInboundPorts":[],"ignoreOutboundPorts":[],"inboundPort":{"port":4143},"metricsPort":{"port":4191},"outboundPort":{"port":4140},"resource":{"requestCpu":"10m","requestMemory":"20Mi","limitCpu":"","limitMemory":""},"proxyUid":"2102","logLevel":{"level":"warn,linkerd2_proxy=info"},"disableExternalProfiles":false}
--- ---
### ###

View File

@ -285,7 +285,7 @@ data:
global: | global: |
{"linkerdNamespace":"linkerd","cniEnabled":false,"version":"dev-undefined","identityContext":null} {"linkerdNamespace":"linkerd","cniEnabled":false,"version":"dev-undefined","identityContext":null}
proxy: | proxy: |
{"proxyImage":{"imageName":"gcr.io/linkerd-io/proxy","pullPolicy":"IfNotPresent"},"proxyInitImage":{"imageName":"gcr.io/linkerd-io/proxy-init","pullPolicy":"IfNotPresent"},"destinationApiPort":{"port":8086},"controlPort":{"port":4190},"ignoreInboundPorts":[],"ignoreOutboundPorts":[],"inboundPort":{"port":4143},"metricsPort":{"port":4191},"outboundPort":{"port":4140},"resource":{"requestCpu":"400m","requestMemory":"300Mi","limitCpu":"","limitMemory":""},"proxyUid":"2102","logLevel":{"level":"warn,linkerd2_proxy=info"},"disableExternalProfiles":false} {"proxyImage":{"imageName":"gcr.io/linkerd-io/proxy","pullPolicy":"IfNotPresent"},"proxyInitImage":{"imageName":"gcr.io/linkerd-io/proxy-init","pullPolicy":"IfNotPresent"},"controlPort":{"port":4190},"ignoreInboundPorts":[],"ignoreOutboundPorts":[],"inboundPort":{"port":4143},"metricsPort":{"port":4191},"outboundPort":{"port":4140},"resource":{"requestCpu":"400m","requestMemory":"300Mi","limitCpu":"","limitMemory":""},"proxyUid":"2102","logLevel":{"level":"warn,linkerd2_proxy=info"},"disableExternalProfiles":false}
--- ---
### ###

View File

@ -249,7 +249,7 @@ data:
global: | global: |
{"linkerdNamespace":"linkerd","cniEnabled":true,"version":"dev-undefined","identityContext":null} {"linkerdNamespace":"linkerd","cniEnabled":true,"version":"dev-undefined","identityContext":null}
proxy: | proxy: |
{"proxyImage":{"imageName":"gcr.io/linkerd-io/proxy","pullPolicy":"IfNotPresent"},"proxyInitImage":{"imageName":"gcr.io/linkerd-io/proxy-init","pullPolicy":"IfNotPresent"},"destinationApiPort":{"port":8086},"controlPort":{"port":4190},"ignoreInboundPorts":[],"ignoreOutboundPorts":[],"inboundPort":{"port":4143},"metricsPort":{"port":4191},"outboundPort":{"port":4140},"resource":{"requestCpu":"","requestMemory":"","limitCpu":"","limitMemory":""},"proxyUid":"2102","logLevel":{"level":"warn,linkerd2_proxy=info"},"disableExternalProfiles":false} {"proxyImage":{"imageName":"gcr.io/linkerd-io/proxy","pullPolicy":"IfNotPresent"},"proxyInitImage":{"imageName":"gcr.io/linkerd-io/proxy-init","pullPolicy":"IfNotPresent"},"controlPort":{"port":4190},"ignoreInboundPorts":[],"ignoreOutboundPorts":[],"inboundPort":{"port":4143},"metricsPort":{"port":4191},"outboundPort":{"port":4140},"resource":{"requestCpu":"","requestMemory":"","limitCpu":"","limitMemory":""},"proxyUid":"2102","logLevel":{"level":"warn,linkerd2_proxy=info"},"disableExternalProfiles":false}
--- ---
### ###

View File

@ -279,7 +279,7 @@ data:
global: | global: |
{"linkerdNamespace":"linkerd","cniEnabled":true,"version":"dev-undefined","identityContext":{}} {"linkerdNamespace":"linkerd","cniEnabled":true,"version":"dev-undefined","identityContext":{}}
proxy: | proxy: |
{"proxyImage":{"imageName":"gcr.io/linkerd-io/proxy","pullPolicy":"IfNotPresent"},"proxyInitImage":{"imageName":"gcr.io/linkerd-io/proxy-init","pullPolicy":"IfNotPresent"},"destinationApiPort":{"port":8086},"controlPort":{"port":4190},"ignoreInboundPorts":[],"ignoreOutboundPorts":[],"inboundPort":{"port":4143},"metricsPort":{"port":4191},"outboundPort":{"port":4140},"resource":{"requestCpu":"","requestMemory":"","limitCpu":"","limitMemory":""},"proxyUid":"2102","logLevel":{"level":"warn,linkerd2_proxy=info"},"disableExternalProfiles":false} {"proxyImage":{"imageName":"gcr.io/linkerd-io/proxy","pullPolicy":"IfNotPresent"},"proxyInitImage":{"imageName":"gcr.io/linkerd-io/proxy-init","pullPolicy":"IfNotPresent"},"controlPort":{"port":4190},"ignoreInboundPorts":[],"ignoreOutboundPorts":[],"inboundPort":{"port":4143},"metricsPort":{"port":4191},"outboundPort":{"port":4140},"resource":{"requestCpu":"","requestMemory":"","limitCpu":"","limitMemory":""},"proxyUid":"2102","logLevel":{"level":"warn,linkerd2_proxy=info"},"disableExternalProfiles":false}
--- ---
### ###

View File

@ -80,8 +80,8 @@ spec:
ControllerComponentLabel: controller ControllerComponentLabel: controller
ports: ports:
- name: grpc - name: grpc
port: 123 port: 8086
targetPort: 123 targetPort: 8086
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
@ -138,7 +138,7 @@ spec:
runAsUser: 2103 runAsUser: 2103
- args: - args:
- destination - destination
- -addr=:123 - -addr=:8086
- -controller-namespace=Namespace - -controller-namespace=Namespace
- -enable-tls=true - -enable-tls=true
- -enable-h2-upgrade=true - -enable-h2-upgrade=true
@ -152,7 +152,7 @@ spec:
initialDelaySeconds: 10 initialDelaySeconds: 10
name: destination name: destination
ports: ports:
- containerPort: 123 - containerPort: 8086
name: grpc name: grpc
- containerPort: 9996 - containerPort: 9996
name: admin-http name: admin-http

View File

@ -76,8 +76,8 @@ spec:
ControllerComponentLabel: controller ControllerComponentLabel: controller
ports: ports:
- name: grpc - name: grpc
port: 123 port: 8086
targetPort: 123 targetPort: 8086
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Deployment kind: Deployment
@ -134,7 +134,7 @@ spec:
runAsUser: 2103 runAsUser: 2103
- args: - args:
- destination - destination
- -addr=:123 - -addr=:8086
- -controller-namespace=Namespace - -controller-namespace=Namespace
- -enable-tls=true - -enable-tls=true
- -enable-h2-upgrade=true - -enable-h2-upgrade=true
@ -148,7 +148,7 @@ spec:
initialDelaySeconds: 10 initialDelaySeconds: 10
name: destination name: destination
ports: ports:
- containerPort: 123 - containerPort: 8086
name: grpc name: grpc
- containerPort: 9996 - containerPort: 9996
name: admin-http name: admin-http

View File

@ -35,7 +35,7 @@ func (m *Global) Reset() { *m = Global{} }
func (m *Global) String() string { return proto.CompactTextString(m) } func (m *Global) String() string { return proto.CompactTextString(m) }
func (*Global) ProtoMessage() {} func (*Global) ProtoMessage() {}
func (*Global) Descriptor() ([]byte, []int) { func (*Global) Descriptor() ([]byte, []int) {
return fileDescriptor_config_258e78b4e2a10c28, []int{0} return fileDescriptor_config_433876e2a8cfc063, []int{0}
} }
func (m *Global) XXX_Unmarshal(b []byte) error { func (m *Global) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Global.Unmarshal(m, b) return xxx_messageInfo_Global.Unmarshal(m, b)
@ -86,17 +86,16 @@ func (m *Global) GetIdentityContext() *IdentityContext {
type Proxy struct { type Proxy struct {
ProxyImage *Image `protobuf:"bytes,1,opt,name=proxy_image,json=proxyImage,proto3" json:"proxy_image,omitempty"` ProxyImage *Image `protobuf:"bytes,1,opt,name=proxy_image,json=proxyImage,proto3" json:"proxy_image,omitempty"`
ProxyInitImage *Image `protobuf:"bytes,2,opt,name=proxy_init_image,json=proxyInitImage,proto3" json:"proxy_init_image,omitempty"` ProxyInitImage *Image `protobuf:"bytes,2,opt,name=proxy_init_image,json=proxyInitImage,proto3" json:"proxy_init_image,omitempty"`
DestinationApiPort *Port `protobuf:"bytes,3,opt,name=destination_api_port,json=destinationApiPort,proto3" json:"destination_api_port,omitempty"` ControlPort *Port `protobuf:"bytes,3,opt,name=control_port,json=controlPort,proto3" json:"control_port,omitempty"`
ControlPort *Port `protobuf:"bytes,4,opt,name=control_port,json=controlPort,proto3" json:"control_port,omitempty"` IgnoreInboundPorts []*Port `protobuf:"bytes,4,rep,name=ignore_inbound_ports,json=ignoreInboundPorts,proto3" json:"ignore_inbound_ports,omitempty"`
IgnoreInboundPorts []*Port `protobuf:"bytes,5,rep,name=ignore_inbound_ports,json=ignoreInboundPorts,proto3" json:"ignore_inbound_ports,omitempty"` IgnoreOutboundPorts []*Port `protobuf:"bytes,5,rep,name=ignore_outbound_ports,json=ignoreOutboundPorts,proto3" json:"ignore_outbound_ports,omitempty"`
IgnoreOutboundPorts []*Port `protobuf:"bytes,6,rep,name=ignore_outbound_ports,json=ignoreOutboundPorts,proto3" json:"ignore_outbound_ports,omitempty"` InboundPort *Port `protobuf:"bytes,6,opt,name=inbound_port,json=inboundPort,proto3" json:"inbound_port,omitempty"`
InboundPort *Port `protobuf:"bytes,7,opt,name=inbound_port,json=inboundPort,proto3" json:"inbound_port,omitempty"` MetricsPort *Port `protobuf:"bytes,7,opt,name=metrics_port,json=metricsPort,proto3" json:"metrics_port,omitempty"`
MetricsPort *Port `protobuf:"bytes,8,opt,name=metrics_port,json=metricsPort,proto3" json:"metrics_port,omitempty"` OutboundPort *Port `protobuf:"bytes,8,opt,name=outbound_port,json=outboundPort,proto3" json:"outbound_port,omitempty"`
OutboundPort *Port `protobuf:"bytes,9,opt,name=outbound_port,json=outboundPort,proto3" json:"outbound_port,omitempty"` Resource *ResourceRequirements `protobuf:"bytes,9,opt,name=resource,proto3" json:"resource,omitempty"`
Resource *ResourceRequirements `protobuf:"bytes,10,opt,name=resource,proto3" json:"resource,omitempty"` ProxyUid int64 `protobuf:"varint,10,opt,name=proxy_uid,json=proxyUid,proto3" json:"proxy_uid,omitempty"`
ProxyUid int64 `protobuf:"varint,11,opt,name=proxy_uid,json=proxyUid,proto3" json:"proxy_uid,omitempty"` LogLevel *LogLevel `protobuf:"bytes,11,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
LogLevel *LogLevel `protobuf:"bytes,12,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` DisableExternalProfiles bool `protobuf:"varint,12,opt,name=disable_external_profiles,json=disableExternalProfiles,proto3" json:"disable_external_profiles,omitempty"`
DisableExternalProfiles bool `protobuf:"varint,13,opt,name=disable_external_profiles,json=disableExternalProfiles,proto3" json:"disable_external_profiles,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
@ -106,7 +105,7 @@ func (m *Proxy) Reset() { *m = Proxy{} }
func (m *Proxy) String() string { return proto.CompactTextString(m) } func (m *Proxy) String() string { return proto.CompactTextString(m) }
func (*Proxy) ProtoMessage() {} func (*Proxy) ProtoMessage() {}
func (*Proxy) Descriptor() ([]byte, []int) { func (*Proxy) Descriptor() ([]byte, []int) {
return fileDescriptor_config_258e78b4e2a10c28, []int{1} return fileDescriptor_config_433876e2a8cfc063, []int{1}
} }
func (m *Proxy) XXX_Unmarshal(b []byte) error { func (m *Proxy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Proxy.Unmarshal(m, b) return xxx_messageInfo_Proxy.Unmarshal(m, b)
@ -140,13 +139,6 @@ func (m *Proxy) GetProxyInitImage() *Image {
return nil return nil
} }
func (m *Proxy) GetDestinationApiPort() *Port {
if m != nil {
return m.DestinationApiPort
}
return nil
}
func (m *Proxy) GetControlPort() *Port { func (m *Proxy) GetControlPort() *Port {
if m != nil { if m != nil {
return m.ControlPort return m.ControlPort
@ -229,7 +221,7 @@ func (m *Image) Reset() { *m = Image{} }
func (m *Image) String() string { return proto.CompactTextString(m) } func (m *Image) String() string { return proto.CompactTextString(m) }
func (*Image) ProtoMessage() {} func (*Image) ProtoMessage() {}
func (*Image) Descriptor() ([]byte, []int) { func (*Image) Descriptor() ([]byte, []int) {
return fileDescriptor_config_258e78b4e2a10c28, []int{2} return fileDescriptor_config_433876e2a8cfc063, []int{2}
} }
func (m *Image) XXX_Unmarshal(b []byte) error { func (m *Image) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Image.Unmarshal(m, b) return xxx_messageInfo_Image.Unmarshal(m, b)
@ -274,7 +266,7 @@ func (m *Port) Reset() { *m = Port{} }
func (m *Port) String() string { return proto.CompactTextString(m) } func (m *Port) String() string { return proto.CompactTextString(m) }
func (*Port) ProtoMessage() {} func (*Port) ProtoMessage() {}
func (*Port) Descriptor() ([]byte, []int) { func (*Port) Descriptor() ([]byte, []int) {
return fileDescriptor_config_258e78b4e2a10c28, []int{3} return fileDescriptor_config_433876e2a8cfc063, []int{3}
} }
func (m *Port) XXX_Unmarshal(b []byte) error { func (m *Port) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Port.Unmarshal(m, b) return xxx_messageInfo_Port.Unmarshal(m, b)
@ -315,7 +307,7 @@ func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} }
func (m *ResourceRequirements) String() string { return proto.CompactTextString(m) } func (m *ResourceRequirements) String() string { return proto.CompactTextString(m) }
func (*ResourceRequirements) ProtoMessage() {} func (*ResourceRequirements) ProtoMessage() {}
func (*ResourceRequirements) Descriptor() ([]byte, []int) { func (*ResourceRequirements) Descriptor() ([]byte, []int) {
return fileDescriptor_config_258e78b4e2a10c28, []int{4} return fileDescriptor_config_433876e2a8cfc063, []int{4}
} }
func (m *ResourceRequirements) XXX_Unmarshal(b []byte) error { func (m *ResourceRequirements) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ResourceRequirements.Unmarshal(m, b) return xxx_messageInfo_ResourceRequirements.Unmarshal(m, b)
@ -373,7 +365,7 @@ func (m *IdentityContext) Reset() { *m = IdentityContext{} }
func (m *IdentityContext) String() string { return proto.CompactTextString(m) } func (m *IdentityContext) String() string { return proto.CompactTextString(m) }
func (*IdentityContext) ProtoMessage() {} func (*IdentityContext) ProtoMessage() {}
func (*IdentityContext) Descriptor() ([]byte, []int) { func (*IdentityContext) Descriptor() ([]byte, []int) {
return fileDescriptor_config_258e78b4e2a10c28, []int{5} return fileDescriptor_config_433876e2a8cfc063, []int{5}
} }
func (m *IdentityContext) XXX_Unmarshal(b []byte) error { func (m *IdentityContext) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IdentityContext.Unmarshal(m, b) return xxx_messageInfo_IdentityContext.Unmarshal(m, b)
@ -404,7 +396,7 @@ func (m *LogLevel) Reset() { *m = LogLevel{} }
func (m *LogLevel) String() string { return proto.CompactTextString(m) } func (m *LogLevel) String() string { return proto.CompactTextString(m) }
func (*LogLevel) ProtoMessage() {} func (*LogLevel) ProtoMessage() {}
func (*LogLevel) Descriptor() ([]byte, []int) { func (*LogLevel) Descriptor() ([]byte, []int) {
return fileDescriptor_config_258e78b4e2a10c28, []int{6} return fileDescriptor_config_433876e2a8cfc063, []int{6}
} }
func (m *LogLevel) XXX_Unmarshal(b []byte) error { func (m *LogLevel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogLevel.Unmarshal(m, b) return xxx_messageInfo_LogLevel.Unmarshal(m, b)
@ -441,49 +433,48 @@ func init() {
proto.RegisterType((*LogLevel)(nil), "linkerd2.config.LogLevel") proto.RegisterType((*LogLevel)(nil), "linkerd2.config.LogLevel")
} }
func init() { proto.RegisterFile("config/config.proto", fileDescriptor_config_258e78b4e2a10c28) } func init() { proto.RegisterFile("config/config.proto", fileDescriptor_config_433876e2a8cfc063) }
var fileDescriptor_config_258e78b4e2a10c28 = []byte{ var fileDescriptor_config_433876e2a8cfc063 = []byte{
// 654 bytes of a gzipped FileDescriptorProto // 632 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00,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xd0, 0x39, 0x74,
0xea, 0x27, 0x23, 0xea, 0xb6, 0x32, 0xcc, 0xd1, 0xba, 0xd8, 0xeb, 0xa4, 0x63, 0x04, 0xed, 0xf1, 0x4c, 0x3c, 0x30, 0x98, 0xd5, 0xc7, 0x3b, 0xb0, 0xf5, 0xe0, 0x01, 0x88, 0x23, 0xf0, 0xdb, 0x52,
0x0a, 0x7a, 0x36, 0xe8, 0x1c, 0x9a, 0x26, 0xee, 0x19, 0xcd, 0xf2, 0xc1, 0x1e, 0xec, 0x3c, 0xba, 0x93, 0x3d, 0xe8, 0xda, 0x9f, 0x62, 0x13, 0xb4, 0x9b, 0xf7, 0x47, 0x5f, 0x5f, 0x15, 0x54, 0x7d,
0x49, 0x82, 0x21, 0x74, 0x96, 0xad, 0x26, 0x03, 0x68, 0xd9, 0x9f, 0x62, 0x0b, 0xb4, 0x2f, 0x1f, 0x6b, 0x66, 0xc3, 0x4c, 0x94, 0x23, 0xf7, 0x9f, 0xda, 0xef, 0x78, 0xe4, 0xa6, 0x8f, 0xa1, 0x1c,
0x8e, 0xbf, 0xbd, 0xc9, 0x50, 0x7d, 0xaf, 0x16, 0xe3, 0x44, 0xe4, 0x13, 0xf7, 0x9f, 0x96, 0xcf, 0x15, 0xc8, 0xdd, 0xeb, 0x38, 0x5b, 0x33, 0xcf, 0xe3, 0xd1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff,
0xe9, 0xc4, 0x4d, 0x1f, 0xa3, 0x72, 0x92, 0x51, 0xee, 0xae, 0xd9, 0x45, 0xdb, 0xdc, 0xb3, 0xc7, 0xf4, 0x34, 0xf2, 0xba, 0x35, 0x05, 0x00, 0x00,
0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x9f, 0xbe, 0x0a, 0x40, 0x7e, 0x05, 0x00, 0x00,
} }

View File

@ -24,7 +24,6 @@ var (
proxyConfig = &config.Proxy{ proxyConfig = &config.Proxy{
ProxyImage: &config.Image{ImageName: "gcr.io/linkerd-io/proxy", PullPolicy: "IfNotPresent"}, ProxyImage: &config.Image{ImageName: "gcr.io/linkerd-io/proxy", PullPolicy: "IfNotPresent"},
ProxyInitImage: &config.Image{ImageName: "gcr.io/linkerd-io/proxy-init", PullPolicy: "IfNotPresent"}, ProxyInitImage: &config.Image{ImageName: "gcr.io/linkerd-io/proxy-init", PullPolicy: "IfNotPresent"},
DestinationApiPort: &config.Port{Port: 8086},
ControlPort: &config.Port{Port: 4190}, ControlPort: &config.Port{Port: 4190},
IgnoreInboundPorts: nil, IgnoreInboundPorts: nil,
IgnoreOutboundPorts: nil, IgnoreOutboundPorts: nil,

View File

@ -31,6 +31,8 @@ const (
podNamespaceEnvVarName = "LINKERD2_PROXY_POD_NAMESPACE" podNamespaceEnvVarName = "LINKERD2_PROXY_POD_NAMESPACE"
// defaultKeepaliveMs is used in the proxy configuration for remote connections // defaultKeepaliveMs is used in the proxy configuration for remote connections
defaultKeepaliveMs = 10000 defaultKeepaliveMs = 10000
// destinationAPIPort is the port exposed by the linkerd-destination service
destinationAPIPort = 8086
) )
var injectableKinds = []string{ var injectableKinds = []string{
@ -420,7 +422,7 @@ func (conf *ResourceConfig) injectPodSpec(patch *Patch, identity k8s.TLSIdentity
{Name: "LINKERD2_PROXY_LOG", Value: conf.proxyConfig.GetLogLevel().GetLevel()}, {Name: "LINKERD2_PROXY_LOG", Value: conf.proxyConfig.GetLogLevel().GetLevel()},
{ {
Name: "LINKERD2_PROXY_CONTROL_URL", Name: "LINKERD2_PROXY_CONTROL_URL",
Value: fmt.Sprintf("tcp://%s:%d", controlPlaneDNS, conf.proxyConfig.GetDestinationApiPort().GetPort()), Value: fmt.Sprintf("tcp://%s:%d", controlPlaneDNS, destinationAPIPort),
}, },
{Name: "LINKERD2_PROXY_CONTROL_LISTENER", Value: fmt.Sprintf("tcp://0.0.0.0:%d", conf.proxyConfig.GetControlPort().GetPort())}, {Name: "LINKERD2_PROXY_CONTROL_LISTENER", Value: fmt.Sprintf("tcp://0.0.0.0:%d", conf.proxyConfig.GetControlPort().GetPort())},
{Name: "LINKERD2_PROXY_METRICS_LISTENER", Value: fmt.Sprintf("tcp://0.0.0.0:%d", conf.proxyConfig.GetMetricsPort().GetPort())}, {Name: "LINKERD2_PROXY_METRICS_LISTENER", Value: fmt.Sprintf("tcp://0.0.0.0:%d", conf.proxyConfig.GetMetricsPort().GetPort())},

View File

@ -19,19 +19,18 @@ message Proxy {
Image proxy_image = 1; Image proxy_image = 1;
Image proxy_init_image = 2; Image proxy_init_image = 2;
Port destination_api_port = 3; Port control_port = 3;
Port control_port = 4; repeated Port ignore_inbound_ports = 4;
repeated Port ignore_inbound_ports = 5; repeated Port ignore_outbound_ports = 5;
repeated Port ignore_outbound_ports = 6; Port inbound_port = 6;
Port inbound_port = 7; Port metrics_port = 7;
Port metrics_port = 8; Port outbound_port = 8;
Port outbound_port = 9;
ResourceRequirements resource = 10; ResourceRequirements resource = 9;
int64 proxy_uid = 11; int64 proxy_uid = 10;
LogLevel log_level = 12; LogLevel log_level = 11;
bool disable_external_profiles = 13; bool disable_external_profiles = 12;
} }
message Image { message Image {