Merge pull request #27504 from gecube/master

Update konnectivity to 0.0.16 and update ZH docs accordingly
This commit is contained in:
Kubernetes Prow Robot
2021-05-09 07:26:47 -07:00
committed by GitHub
5 changed files with 30 additions and 26 deletions
@@ -22,7 +22,7 @@ spec:
- key: "CriticalAddonsOnly" - key: "CriticalAddonsOnly"
operator: "Exists" operator: "Exists"
containers: containers:
- image: us.gcr.io/k8s-artifacts-prod/kas-network-proxy/proxy-agent:v0.0.12 - image: us.gcr.io/k8s-artifacts-prod/kas-network-proxy/proxy-agent:v0.0.16
name: konnectivity-agent name: konnectivity-agent
command: ["/proxy-agent"] command: ["/proxy-agent"]
args: [ args: [
@@ -8,7 +8,7 @@ spec:
hostNetwork: true hostNetwork: true
containers: containers:
- name: konnectivity-server-container - name: konnectivity-server-container
image: us.gcr.io/k8s-artifacts-prod/kas-network-proxy/proxy-server:v0.0.12 image: us.gcr.io/k8s-artifacts-prod/kas-network-proxy/proxy-server:v0.0.16
command: ["/proxy-server"] command: ["/proxy-server"]
args: [ args: [
"--logtostderr=true", "--logtostderr=true",
@@ -18,4 +18,4 @@ egressSelections:
# The other supported transport is "tcp". You will need to set up TLS # The other supported transport is "tcp". You will need to set up TLS
# config to secure the TCP transport. # config to secure the TCP transport.
uds: uds:
udsName: /etc/srv/kubernetes/konnectivity-server/konnectivity-server.socket udsName: /etc/kubernetes/konnectivity-server/konnectivity-server.socket
@@ -22,7 +22,7 @@ spec:
- key: "CriticalAddonsOnly" - key: "CriticalAddonsOnly"
operator: "Exists" operator: "Exists"
containers: containers:
- image: us.gcr.io/k8s-artifacts-prod/kas-network-proxy/proxy-agent:v0.0.8 - image: us.gcr.io/k8s-artifacts-prod/kas-network-proxy/proxy-agent:v0.0.16
name: konnectivity-agent name: konnectivity-agent
command: ["/proxy-agent"] command: ["/proxy-agent"]
args: [ args: [
@@ -32,6 +32,8 @@ spec:
# this is the IP address of the master machine. # this is the IP address of the master machine.
"--proxy-server-host=35.225.206.7", "--proxy-server-host=35.225.206.7",
"--proxy-server-port=8132", "--proxy-server-port=8132",
"--admin-server-port=8133",
"--health-server-port=8134",
"--service-account-token-path=/var/run/secrets/tokens/konnectivity-agent-token" "--service-account-token-path=/var/run/secrets/tokens/konnectivity-agent-token"
] ]
volumeMounts: volumeMounts:
@@ -39,7 +41,7 @@ spec:
name: konnectivity-agent-token name: konnectivity-agent-token
livenessProbe: livenessProbe:
httpGet: httpGet:
port: 8093 port: 8134
path: /healthz path: /healthz
initialDelaySeconds: 15 initialDelaySeconds: 15
timeoutSeconds: 15 timeoutSeconds: 15
@@ -8,34 +8,33 @@ spec:
hostNetwork: true hostNetwork: true
containers: containers:
- name: konnectivity-server-container - name: konnectivity-server-container
image: us.gcr.io/k8s-artifacts-prod/kas-network-proxy/proxy-server:v0.0.8 image: us.gcr.io/k8s-artifacts-prod/kas-network-proxy/proxy-server:v0.0.16
command: ["/proxy-server"] command: ["/proxy-server"]
args: [ args: [
"--log-file=/var/log/konnectivity-server.log", "--logtostderr=true",
"--logtostderr=false",
"--log-file-max-size=0",
# This needs to be consistent with the value set in egressSelectorConfiguration. # This needs to be consistent with the value set in egressSelectorConfiguration.
"--uds-name=/etc/srv/kubernetes/konnectivity-server/konnectivity-server.socket", "--uds-name=/etc/kubernetes/konnectivity-server/konnectivity-server.socket",
# The following two lines assume the Konnectivity server is # The following two lines assume the Konnectivity server is
# deployed on the same machine as the apiserver, and the certs and # deployed on the same machine as the apiserver, and the certs and
# key of the API Server are at the specified location. # key of the API Server are at the specified location.
"--cluster-cert=/etc/srv/kubernetes/pki/apiserver.crt", "--cluster-cert=/etc/kubernetes/pki/apiserver.crt",
"--cluster-key=/etc/srv/kubernetes/pki/apiserver.key", "--cluster-key=/etc/kubernetes/pki/apiserver.key",
# This needs to be consistent with the value set in egressSelectorConfiguration. # This needs to be consistent with the value set in egressSelectorConfiguration.
"--mode=grpc", "--mode=grpc",
"--server-port=0", "--server-port=0",
"--agent-port=8132", "--agent-port=8132",
"--admin-port=8133", "--admin-port=8133",
"--health-port=8134",
"--agent-namespace=kube-system", "--agent-namespace=kube-system",
"--agent-service-account=konnectivity-agent", "--agent-service-account=konnectivity-agent",
"--kubeconfig=/etc/srv/kubernetes/konnectivity-server/kubeconfig", "--kubeconfig=/etc/kubernetes/konnectivity-server.conf",
"--authentication-audience=system:konnectivity-server" "--authentication-audience=system:konnectivity-server"
] ]
livenessProbe: livenessProbe:
httpGet: httpGet:
scheme: HTTP scheme: HTTP
host: 127.0.0.1 host: 127.0.0.1
port: 8133 port: 8134
path: /healthz path: /healthz
initialDelaySeconds: 30 initialDelaySeconds: 30
timeoutSeconds: 60 timeoutSeconds: 60
@@ -46,25 +45,28 @@ spec:
- name: adminport - name: adminport
containerPort: 8133 containerPort: 8133
hostPort: 8133 hostPort: 8133
- name: healthport
containerPort: 8134
hostPort: 8134
volumeMounts: volumeMounts:
- name: varlogkonnectivityserver - name: k8s-certs
mountPath: /var/log/konnectivity-server.log mountPath: /etc/kubernetes/pki
readOnly: false readOnly: true
- name: pki - name: kubeconfig
mountPath: /etc/srv/kubernetes/pki mountPath: /etc/kubernetes/konnectivity-server.conf
readOnly: true readOnly: true
- name: konnectivity-uds - name: konnectivity-uds
mountPath: /etc/srv/kubernetes/konnectivity-server mountPath: /etc/kubernetes/konnectivity-server
readOnly: false readOnly: false
volumes: volumes:
- name: varlogkonnectivityserver - name: k8s-certs
hostPath: hostPath:
path: /var/log/konnectivity-server.log path: /etc/kubernetes/pki
- name: kubeconfig
hostPath:
path: /etc/kubernetes/konnectivity-server.conf
type: FileOrCreate type: FileOrCreate
- name: pki
hostPath:
path: /etc/srv/kubernetes/pki
- name: konnectivity-uds - name: konnectivity-uds
hostPath: hostPath:
path: /etc/srv/kubernetes/konnectivity-server path: /etc/kubernetes/konnectivity-server
type: DirectoryOrCreate type: DirectoryOrCreate