Skip to content

Commit fcd0654

Browse files
author
Andrew
committed
Thu Apr 2 09:47:20 PM PDT 2026
Signed-off-by: Andrew <mindovermiles262@gmail>
1 parent b474b42 commit fcd0654

16 files changed

Lines changed: 183 additions & 265 deletions

charts/arete/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.0.0
18+
version: 1.1.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{- define "cns_password" -}}
2+
{{ randAlphaNum 16 }}
3+
{{- end -}}

charts/arete/templates/areteEtcdDeployment.yaml

Lines changed: 0 additions & 50 deletions
This file was deleted.

charts/arete/templates/areteEtcdIstioIngress.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

charts/arete/templates/areteEtcdService.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

charts/arete/templates/cnscpDeployment.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

charts/arete/templates/cnscpService.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

charts/arete/templates/cnscpServiceAccount.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
apiVersion: v1
3+
kind: ConfigMap
4+
metadata:
5+
name: {{ .Values.name }}-config
6+
data:
7+
CNS_HOST: "{{ .Values.name }}-etcd.{{ .Release.Namespace }}.svc.cluster.local"
8+
CNS_PORT: "2379"
9+
# CNS_USERNAME: {{ .Values.name | quote }}
10+
# CNS_PASSWORD: {{ include "cns_password" . | quote }}
11+
CNS_PROFILES: "https://cp.padi.io/profiles"
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: {{ .Values.name }}-etcd
6+
labels:
7+
app: {{ .Values.name }}-etcd
8+
spec:
9+
replicas: {{ .Values.etcd.replicas }}
10+
selector:
11+
matchLabels:
12+
app: {{ .Values.name }}-etcd
13+
template:
14+
metadata:
15+
labels:
16+
app: {{ .Values.name }}-etcd
17+
spec:
18+
containers:
19+
- name: {{ .Values.name }}-etcd
20+
image: {{ .Values.etcd.imageRepository }}:{{ .Values.etcd.imageTag }}
21+
ports:
22+
- containerPort: {{ .Values.etcd.servicePort }}
23+
name: service
24+
{{- if .Values.etcd.peerPort }}
25+
- containerPort: {{ .Values.etcd.peerPort }}
26+
name: peer
27+
{{- end }}
28+
command:
29+
- /usr/local/bin/etcd
30+
args:
31+
{{- if .Values.etcd.args }}
32+
{{- range .Values.etcd.args }}
33+
- "--{{ .arg }}"
34+
- "{{ .value }}"
35+
{{- end }}
36+
{{- end }}
37+
env:
38+
{{- if .Values.etcd.env }}
39+
{{- range .Values.etcd.env }}
40+
- name: {{ .name }}
41+
value: {{ .value | quote }}
42+
{{- end }}
43+
{{- end }}
44+
# volumeMounts:
45+
# - name: "{{ .Values.name }}-vol"
46+
# mountPath: {{ .Values.etcd.dataMountPoint }}
47+
# volumes:
48+
# - name: "{{ .Values.name }}-vol"
49+
# persistentVolumeClaim:
50+
# claimName: "{{ .Values.name }}-pvc"
51+
52+
---
53+
apiVersion: apps/v1
54+
kind: Deployment
55+
metadata:
56+
name: {{ .Values.name }}-cli
57+
labels:
58+
name: {{ .Values.name }}-cli
59+
spec:
60+
replicas: {{ .Values.cli.replicas }}
61+
selector:
62+
matchLabels:
63+
app: {{ .Values.name }}-cli
64+
template:
65+
metadata:
66+
labels:
67+
app: {{ .Values.name }}-cli
68+
annotations:
69+
{{ if .Values.cli.rollPods }}
70+
rollme: {{ randAlphaNum 5 | quote }}
71+
{{ end }}
72+
spec:
73+
imagePullSecrets:
74+
- name: artifact-registry-secret
75+
containers:
76+
- name: {{ .Values.name }}-cli
77+
image: {{ .Values.cli.imageRepository }}:{{ .Values.cli.imageTag }}
78+
imagePullPolicy: {{ .Values.cli.pullPolicy }}
79+
envFrom:
80+
- configMapRef:
81+
name: {{ .Values.name }}-config
82+
ports:
83+
- containerPort: {{ .Values.cli.containerPort }}
84+
85+
---
86+
apiVersion: apps/v1
87+
kind: Deployment
88+
metadata:
89+
name: {{ .Values.name }}-orch
90+
labels:
91+
name: {{ .Values.name }}-orch
92+
spec:
93+
replicas: {{ .Values.orch.replicas }}
94+
selector:
95+
matchLabels:
96+
app: {{ .Values.name }}-orch
97+
template:
98+
metadata:
99+
labels:
100+
app: {{ .Values.name }}-orch
101+
spec:
102+
imagePullSecrets:
103+
- name: artifact-registry-secret
104+
serviceAccountName: {{ .Values.orch.serviceAccountName }}
105+
containers:
106+
- name: {{ .Values.name }}-orch
107+
image: {{ .Values.orch.imageRepository }}:{{ .Values.orch.imageTag }}
108+
imagePullPolicy: {{ .Values.orch.pullPolicy }}
109+
envFrom:
110+
- configMapRef:
111+
name: {{ .Values.name }}-config

0 commit comments

Comments
 (0)