-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
103 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ FROM scratch | |
|
||
COPY cloudcore /cloudcore | ||
|
||
ENTRYPOINT ["cloudcore"] | ||
ENTRYPOINT ["/cloudcore"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.md | ||
.git | ||
.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v2 | ||
name: cloudcore | ||
description: A Helm chart for the CloudCore application | ||
version: 0.1.0 | ||
appVersion: "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cloudcore-deployment | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cloudcore | ||
template: | ||
metadata: | ||
labels: | ||
app: cloudcore | ||
spec: | ||
containers: | ||
- name: cloudcore | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
ports: | ||
- containerPort: {{ .Values.service.agentServer.port }} | ||
- containerPort: {{ .Values.service.appServer.port }} | ||
env: | ||
- name: AGENT_SERVER_PORT | ||
value: "{{ .Values.env.agentServerPort }}" | ||
- name: APP_SERVER_PORT | ||
value: "{{ .Values.env.appServerPort }}" | ||
- name: AUTH0_DOMAIN | ||
value: "{{ .Values.env.auth0Domain }}" | ||
- name: AUTH0_AUDIENCE | ||
value: "{{ .Values.env.auth0Audience }}" | ||
- name: LOGGING_LEVEL | ||
value: "{{ .Values.env.loggingLevel }}" | ||
- name: AUTH_TOKEN_SIGNING_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: cloudcore-secret | ||
key: authTokenSigningSecret | ||
- name: DATABASE_CONNECTION_STRING | ||
valueFrom: | ||
secretKeyRef: | ||
name: cloudcore-secret | ||
key: databaseConnectionString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: cloudcore-secret | ||
type: Opaque | ||
data: | ||
authTokenSigningSecret: {{ randAlphaNum 32 | b64enc | quote }} | ||
databaseConnectionString: {{ .Values.env.databaseConnectionString | b64enc | quote }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: agent-server-service | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: {{ .Values.service.agentServer.port }} | ||
targetPort: {{ .Values.service.agentServer.port }} | ||
selector: | ||
app: cloudcore | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: app-server-service | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: {{ .Values.service.appServer.port }} | ||
targetPort: {{ .Values.service.appServer.port }} | ||
selector: | ||
app: cloudcore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
image: | ||
repository: ghcr.io/clarkmcc/cloudcore | ||
pullPolicy: IfNotPresent | ||
tag: "latest" | ||
|
||
service: | ||
agentServer: | ||
port: 10000 | ||
appServer: | ||
port: 10001 | ||
|
||
env: | ||
agentServerPort: 10000 | ||
appServerPort: 10001 | ||
auth0Domain: "" | ||
auth0Audience: "" | ||
loggingLevel: "" | ||
authTokenSigningSecret: "" # This will be set in the deployment | ||
databaseConnectionString: "" # This will be set from a secret |