Skip to content

Commit

Permalink
User clusterIP instead of LoadBalancer
Browse files Browse the repository at this point in the history
Signed-off-by: Yanjun Zhou <zhouya@vmware.com>
  • Loading branch information
yanjunz97 committed Mar 24, 2022
1 parent 152c804 commit d730119
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
9 changes: 4 additions & 5 deletions build/yamls/flow-visibility.yml
Expand Up @@ -61,8 +61,8 @@ data:
under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES
OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the
specific language governing permissions and\n# limitations under the License.\n\nset
-e\nclickhouse client -n -h 127.0.0.1 --port 9000 <<-EOSQL\n\n CREATE TABLE
IF NOT EXISTS flows (\n timeInserted DateTime DEFAULT now(),\n flowStartSeconds
-e\nclickhouse client -n -h 127.0.0.1 <<-EOSQL\n\n CREATE TABLE IF NOT EXISTS
flows (\n timeInserted DateTime DEFAULT now(),\n flowStartSeconds
DateTime,\n flowEndSeconds DateTime,\n flowEndSecondsFromSourceNode
DateTime,\n flowEndSecondsFromDestinationNode DateTime,\n flowEndReason
UInt8,\n sourceIP String,\n destinationIP String,\n sourceTransportPort
Expand Down Expand Up @@ -145,7 +145,7 @@ data:
\ ORDER BY (timeCreated);\n \nEOSQL\n"
kind: ConfigMap
metadata:
name: clickhouse-mounted-configmap-2mfk7kmcgt
name: clickhouse-mounted-configmap-dkbmg82ctg
namespace: flow-visibility
---
apiVersion: v1
Expand Down Expand Up @@ -4939,7 +4939,7 @@ spec:
name: clickhouse-monitor
volumes:
- configMap:
name: clickhouse-mounted-configmap-2mfk7kmcgt
name: clickhouse-mounted-configmap-dkbmg82ctg
name: clickhouse-configmap-volume
- emptyDir:
medium: Memory
Expand All @@ -4953,4 +4953,3 @@ spec:
port: 8123
- name: tcp
port: 9000
type: LoadBalancer
1 change: 0 additions & 1 deletion build/yamls/flow-visibility/base/clickhouse.yml
Expand Up @@ -36,7 +36,6 @@ spec:
port: 8123
- name: tcp
port: 9000
type: LoadBalancer
podTemplates:
- name: pod-template
spec:
Expand Down
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

set -e
clickhouse client -n -h 127.0.0.1 --port 9000 <<-EOSQL
clickhouse client -n -h 127.0.0.1 <<-EOSQL
CREATE TABLE IF NOT EXISTS flows (
timeInserted DateTime DEFAULT now(),
Expand Down
3 changes: 1 addition & 2 deletions docs/network-flow-visibility.md
Expand Up @@ -553,7 +553,7 @@ pod/grafana-5c6c5b74f7-x4v5b 1/1 Running 0 1m

NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/chi-clickhouse-clickhouse-0-0 ClusterIP None <none> 8123/TCP,9000/TCP,9009/TCP 1m
service/clickhouse-clickhouse LoadBalancer 10.105.198.192 <pending> 8123:30001/TCP,9000:31044/TCP 1m
service/clickhouse-clickhouse ClusterIP 10.102.124.56 <none> 8123/TCP,9000/TCP 1m
service/grafana LoadBalancer 10.97.171.150 <pending> 3000:31171/TCP 1m

NAME READY UP-TO-DATE AVAILABLE AGE
Expand Down Expand Up @@ -641,7 +641,6 @@ serviceTemplates:
port: 8123
- name: tcp
port: 9000
type: LoadBalancer
```

This service is also used by the Flow Aggregator and Grafana. If you update the
Expand Down

0 comments on commit d730119

Please sign in to comment.