Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion cmd/rig/cmd/dev/kind/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ nodes:
listenAddress: "127.0.0.1"
protocol: TCP
- containerPort: 30047
hostPort: 30047
hostPort: 4747
listenAddress: "127.0.0.1"
protocol: TCP
3 changes: 1 addition & 2 deletions cmd/rig/cmd/dev/kind/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (c Cmd) deploy(cmd *cobra.Command, args []string) error {
"--set", "postgres.enabled=true",
"--set", "rig.cluster.dev_registry.host=localhost:30000",
"--set", "rig.cluster.dev_registry.cluster_host=registry:5000",
"--set", "service.type=NodePort",
"--set", "loadBalancer.enabled=true",
"--set", "rig-operator.enabled=false",
},
}); err != nil {
Expand Down Expand Up @@ -156,7 +156,6 @@ func (c Cmd) deployInner(ctx context.Context, p deployParams) error {
"upgrade", "--install", p.chartName, chart,
"--namespace", "rig-system",
"--set", fmt.Sprintf("image.tag=%s", operatorDockerTag),
"--set", "service.nodePort=30047",
"--create-namespace",
}
cArgs = append(cArgs, p.customArgs...)
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/rig-platform/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.6
version: 0.1.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 2 additions & 2 deletions deploy/charts/rig-platform/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
{{- else if .Values.loadBalancer.enabled }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "rig-platform.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
Expand All @@ -14,7 +14,7 @@
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "rig-platform.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "rig-platform.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
{{- else }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "rig-platform.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
Expand Down
20 changes: 9 additions & 11 deletions deploy/charts/rig-platform/templates/capsule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
interfaces:
- name: http
port: {{ .Values.service.port }}
{{- if .Values.service.nodePort }}
public:
loadBalancer:
port: {{ .Values.service.port }}
nodePort: {{ .Values.service.nodePort }}
{{- end}}
{{- if .Values.ingress.enabled }}
- name: http-ingress
port: {{ $.Values.service.port }}
port: {{ .Values.port }}
{{- if .Values.ingress.enabled }}
public:
ingress:
host: .Values.ingress.host
{{- end}}
{{- end}}
{{- if .Values.loadBalancer.enabled }}
public:
loadBalancer:
port: {{ .Values.port }}
nodePort: {{ .Values.loadBalancer.nodePort }}
{{- end}}
files:
- path: /etc/rig/server-config.yaml
secret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ spec:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "rig-platform.fullname" . }}:{{ .Values.service.port }}']
args: ['{{ include "rig-platform.fullname" . }}:{{ .Values.port }}']
restartPolicy: Never
7 changes: 5 additions & 2 deletions deploy/charts/rig-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ securityContext:
# runAsNonRoot: true
# runAsUser: 1000

service:
port: 4747
port: 4747

loadBalancer:
enabled: false
nodePort: 30047

ingress:
enabled: false
Expand Down