Skip to content

Commit

Permalink
Update version (#391)
Browse files Browse the repository at this point in the history
* update version

Signed-off-by: ChenLong Ma <owlet42@126.com>

* update dockerfile

Signed-off-by: ChenLong Ma <owlet42@126.com>

* fix pulsar config

Signed-off-by: ChenLong Ma <owlet42@126.com>
  • Loading branch information
owlet42 authored Apr 2, 2021
1 parent 8e5afa9 commit 42bbf4f
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 8 deletions.
12 changes: 9 additions & 3 deletions helm-charts/FATE/templates/pulsar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,18 @@ data:
# Configuration Store connection string
configurationStoreServers=
brokerServicePort=6650
{{- if .Values.modules.pulsar.exchange }}
brokerServicePortTls=6651
{{- else }}
brokerServicePort=6650
{{- end }}
# Port to use to server HTTP request
webServicePort=8080
{{- if .Values.modules.pulsar.exchange }}
webServicePortTls=8081
{{- else }}
webServicePort=8080
{{- end }}
# Hostname or IP address the service binds on, default is 0.0.0.0.
bindAddress=0.0.0.0
Expand Down Expand Up @@ -957,7 +963,7 @@ spec:
spec:
containers:
- name: pulsar
image: apachepulsar/pulsar:2.7.0
image: {{ .Values.image.registry }}/pulsar:2.7.0
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- /bin/bash
Expand Down
2 changes: 1 addition & 1 deletion k8s-deploy/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME ?= federatedai/kubefate
VERSION ?= v1.4.0
VERSION ?= v1.4.1
IMG ?= ${NAME}:${VERSION}

ifeq (,$(shell go env GOBIN))
Expand Down
2 changes: 1 addition & 1 deletion k8s-deploy/cluster-spark.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: fate-9999
namespace: fate-9999
chartName: fate
chartVersion: v1.5.0
chartVersion: v1.6.0
partyId: 9999
registry: ""
imageTag: ""
Expand Down
2 changes: 1 addition & 1 deletion k8s-deploy/cluster.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: fate-9999
namespace: fate-9999
chartName: fate
chartVersion: v1.5.1
chartVersion: v1.6.0
partyId: 9999
registry: ""
imageTag: ""
Expand Down
81 changes: 81 additions & 0 deletions k8s-deploy/examples/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#!/bin/bash

source party.config

echo ${chartVersion}
echo ${imageTAG}
echo ${party_9999_IP}
echo ${party_10000_IP}
echo ${party_exchange_IP}

# 9999 config
sed -i "s/chartVersion: .*/chartVersion: ${chartVersion}/g" ./party-9999/cluster.yaml
sed -i "s/chartVersion: .*/chartVersion: ${chartVersion}/g" ./party-9999/cluster-serving.yaml
sed -i "s/chartVersion: .*/chartVersion: ${chartVersion}/g" ./party-9999/cluster-spark.yaml
sed -i "s/chartVersion: .*/chartVersion: ${chartVersion}/g" ./party-9999/cluster-spark-pulsar.yaml

sed -i "s/imageTag: .*/imageTag: ${imageTAG}/g" ./party-9999/cluster.yaml
sed -i "s/imageTag: .*/imageTag: ${imageTAG}/g" ./party-9999/cluster-serving.yaml
sed -i "s/imageTag: .*/imageTag: ${imageTAG}/g" ./party-9999/cluster-spark.yaml
sed -i "s/imageTag: .*/imageTag: ${imageTAG}/g" ./party-9999/cluster-spark-pulsar.yaml


sed -i "s/192.168.9.1/${party_9999_IP}/g" ./party-9999/cluster.yaml
sed -i "s/192.168.9.1/${party_9999_IP}/g" ./party-9999/cluster-serving.yaml
sed -i "s/192.168.9.1/${party_9999_IP}/g" ./party-9999/cluster-spark.yaml
sed -i "s/192.168.9.1/${party_9999_IP}/g" ./party-9999/cluster-spark-pulsar.yaml

sed -i "s/192.168.10.1/${party_10000_IP}/g" ./party-9999/cluster.yaml
sed -i "s/192.168.10.1/${party_10000_IP}/g" ./party-9999/cluster-serving.yaml
sed -i "s/192.168.10.1/${party_10000_IP}/g" ./party-9999/cluster-spark.yaml
sed -i "s/192.168.10.1/${party_10000_IP}/g" ./party-9999/cluster-spark-pulsar.yaml

sed -i "s/192.168.0.1/${party_exchange_IP}/g" ./party-9999/cluster.yaml
sed -i "s/192.168.0.1/${party_exchange_IP}/g" ./party-9999/cluster-serving.yaml
sed -i "s/192.168.0.1/${party_exchange_IP}/g" ./party-9999/cluster-spark.yaml
sed -i "s/192.168.0.1/${party_exchange_IP}/g" ./party-9999/cluster-spark-pulsar.yaml

# 10000 config

sed -i "s/chartVersion: .*/chartVersion: ${chartVersion}/g" ./party-10000/cluster.yaml
sed -i "s/chartVersion: .*/chartVersion: ${chartVersion}/g" ./party-10000/cluster-serving.yaml
sed -i "s/chartVersion: .*/chartVersion: ${chartVersion}/g" ./party-10000/cluster-spark.yaml
sed -i "s/chartVersion: .*/chartVersion: ${chartVersion}/g" ./party-10000/cluster-spark-pulsar.yaml

sed -i "s/imageTag: .*/imageTag: ${imageTAG}/g" ./party-10000/cluster.yaml
sed -i "s/imageTag: .*/imageTag: ${imageTAG}/g" ./party-10000/cluster-serving.yaml
sed -i "s/imageTag: .*/imageTag: ${imageTAG}/g" ./party-10000/cluster-spark.yaml
sed -i "s/imageTag: .*/imageTag: ${imageTAG}/g" ./party-10000/cluster-spark-pulsar.yaml

sed -i "s/192.168.9.1/${party_9999_IP}/g" ./party-10000/cluster.yaml
sed -i "s/192.168.9.1/${party_9999_IP}/g" ./party-10000/cluster-serving.yaml
sed -i "s/192.168.9.1/${party_9999_IP}/g" ./party-10000/cluster-spark.yaml
sed -i "s/192.168.9.1/${party_9999_IP}/g" ./party-10000/cluster-spark-pulsar.yaml

sed -i "s/192.168.10.1/${party_10000_IP}/g" ./party-10000/cluster.yaml
sed -i "s/192.168.10.1/${party_10000_IP}/g" ./party-10000/cluster-serving.yaml
sed -i "s/192.168.10.1/${party_10000_IP}/g" ./party-10000/cluster-spark.yaml
sed -i "s/192.168.10.1/${party_10000_IP}/g" ./party-10000/cluster-spark-pulsar.yaml

sed -i "s/192.168.0.1/${party_exchange_IP}/g" ./party-10000/cluster.yaml
sed -i "s/192.168.0.1/${party_exchange_IP}/g" ./party-10000/cluster-serving.yaml
sed -i "s/192.168.0.1/${party_exchange_IP}/g" ./party-10000/cluster-spark.yaml
sed -i "s/192.168.0.1/${party_exchange_IP}/g" ./party-10000/cluster-spark-pulsar.yaml


# exchange config

sed -i "s/chartVersion: .*/chartVersion: ${chartVersion}/g" ./party-exchange/rollsite.yaml
sed -i "s/chartVersion: .*/chartVersion: ${chartVersion}/g" ./party-exchange/trafficServer.yaml

sed -i "s/imageTag: .*/imageTag: ${imageTAG}/g" ./party-exchange/rollsite.yaml
sed -i "s/imageTag: .*/imageTag: ${imageTAG}/g" ./party-exchange/trafficServer.yaml

sed -i "s/192.168.9.1/${party_9999_IP}/g" ./party-exchange/rollsite.yaml
sed -i "s/192.168.9.1/${party_9999_IP}/g" ./party-exchange/trafficServer.yaml

sed -i "s/192.168.10.1/${party_10000_IP}/g" ./party-exchange/rollsite.yaml
sed -i "s/192.168.10.1/${party_10000_IP}/g" ./party-exchange/trafficServer.yaml

sed -i "s/192.168.0.1/${party_exchange_IP}/g" ./party-exchange/rollsite.yaml
sed -i "s/192.168.0.1/${party_exchange_IP}/g" ./party-exchange/trafficServer.yaml
2 changes: 1 addition & 1 deletion k8s-deploy/kubefate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
spec:
serviceAccountName: kubefate-admin
containers:
- image: federatedai/kubefate:v1.4.0
- image: federatedai/kubefate:v1.4.1
imagePullPolicy: IfNotPresent
name: kubefate
env:
Expand Down
2 changes: 1 addition & 1 deletion k8s-deploy/pkg/api/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

// ServiceVersion code release version
const ServiceVersion = "v1.4.0"
const ServiceVersion = "v1.4.1"

// Version API struct
type Version struct {
Expand Down

0 comments on commit 42bbf4f

Please sign in to comment.