rename containerName to imageName

This commit is contained in:
CJ_Clippy 2024-06-17 09:46:32 -08:00
parent 2ec2f03015
commit 1b7ea0c2ea
13 changed files with 43 additions and 39 deletions

View File

@ -14,8 +14,8 @@ cert-manager:
secrets: secrets:
./scripts/k8s-secrets.sh ./scripts/k8s-secrets.sh
# flux: flux:
# flux bootstrap git --url="ssh://git@gitea.futureporn.net:2222/futureporn/fp" --branch=main --path="clusters/production" --private-key-file=/home/cj/.ssh/fp-flux flux bootstrap git --url="ssh://git@gitea.futureporn.net:2222/futureporn/fp" --branch=main --path="clusters/production" --private-key-file=/home/cj/.ssh/fp-flux
cluster: cluster:
./scripts/kind-with-local-registry.sh ./scripts/kind-with-local-registry.sh

View File

@ -18,18 +18,18 @@ spec:
values: values:
storageClassName: vultr-block-storage-hdd storageClassName: vultr-block-storage-hdd
link2cid: link2cid:
containerName: gitea.futureporn.net/futureporn/link2cid:latest imageName: gitea.futureporn.net/futureporn/link2cid:latest
next: next:
containerName: gitea.futureporn.net/futureporn/next:latest imageName: gitea.futureporn.net/futureporn/next:latest
certIssuer: letsencrypt-staging certIssuer: letsencrypt-staging
hostname: next.futureporn.svc.cluster.local hostname: next.futureporn.svc.cluster.local
capture: capture:
containerName: gitea.futureporn.net/futureporn/capture:latest imageName: gitea.futureporn.net/futureporn/capture:latest
scout: scout:
manager: manager:
containerName: gitea.futureporn.net/futureporn/scout-manager:latest imageName: gitea.futureporn.net/futureporn/scout-manager:latest
worker: worker:
containerName: gitea.futureporn.net/futureporn/scout-worker:latest imageName: gitea.futureporn.net/futureporn/scout-worker:latest
replicas: 1 replicas: 1
pubsubServerUrl: https://realtime.futureporn.svc.cluster.local/faye pubsubServerUrl: https://realtime.futureporn.svc.cluster.local/faye
certIssuer: letsencrypt-staging certIssuer: letsencrypt-staging
@ -37,7 +37,7 @@ spec:
cdnBucketUrl: https://fp-dev.b-cdn.net cdnBucketUrl: https://fp-dev.b-cdn.net
s3BucketName: fp-dev s3BucketName: fp-dev
strapi: strapi:
containerName: gitea.futureporn.net/futureporn/strapi:latest imageName: gitea.futureporn.net/futureporn/strapi:latest
port: 1339 port: 1339
url: https://strapi.piko.sbtp.xyz url: https://strapi.piko.sbtp.xyz
certIssuer: letsencrypt-staging certIssuer: letsencrypt-staging
@ -46,7 +46,7 @@ spec:
ngrok: ngrok:
hostname: grateful-engaging-cicada.ngrok-free.app hostname: grateful-engaging-cicada.ngrok-free.app
realtime: realtime:
containerName: gitea.futureporn.net/futureporn/realtime:latest imageName: gitea.futureporn.net/futureporn/realtime:latest
adminEmail: cj@futureporn.net adminEmail: cj@futureporn.net
chisel: chisel:
exitNodeIp: "155.138.254.201" exitNodeIp: "155.138.254.201"

View File

@ -31,7 +31,7 @@ spec:
spec: spec:
containers: containers:
- name: capture - name: capture
image: "{{ .Values.capture.containerName }}" image: "{{ .Values.capture.imageName }}"
ports: ports:
- containerPort: 5566 - containerPort: 5566

View File

@ -33,7 +33,7 @@ spec:
app: link2cid app: link2cid
spec: spec:
containers: containers:
- image: {{ .Values.link2cid.containerName }} - image: {{ .Values.link2cid.imageName }}
name: link2cid name: link2cid
ports: ports:
- containerPort: 3939 - containerPort: 3939

View File

@ -31,7 +31,7 @@ spec:
spec: spec:
containers: containers:
- name: realtime - name: realtime
image: "{{ .Values.realtime.containerName }}" image: "{{ .Values.realtime.imageName }}"
ports: ports:
- containerPort: 5535 - containerPort: 5535

View File

@ -31,7 +31,7 @@ spec:
spec: spec:
containers: containers:
- name: scout - name: scout
image: "{{ .Values.scout.containerName }}" image: "{{ .Values.scout.imageName }}"
ports: ports:
- containerPort: 5000 - containerPort: 5000
env: env:

View File

@ -45,7 +45,7 @@ metadata:
spec: spec:
containers: containers:
- name: next - name: next
image: "{{ .Values.next.containerName }}" image: "{{ .Values.next.imageName }}"
env: env:
- name: HOSTNAME - name: HOSTNAME
value: 0.0.0.0 value: 0.0.0.0

View File

@ -17,7 +17,7 @@ spec:
spec: spec:
containers: containers:
- name: scout-worker - name: scout-worker
image: fp/scout-worker:latest image: "{{ .Values.scout.worker.imageName }}"
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8080 - containerPort: 8080
@ -117,7 +117,7 @@ spec:
spec: spec:
containers: containers:
- name: scout-manager - name: scout-manager
image: "{{ .Values.scout.manager.containerName }}" image: "{{ .Values.scout.manager.imageName }}"
ports: ports:
- name: http - name: http
containerPort: 3000 containerPort: 3000

View File

@ -44,7 +44,7 @@ metadata:
spec: spec:
containers: containers:
- name: strapi - name: strapi
image: "{{ .Values.strapi.containerName }}" image: "{{ .Values.strapi.imageName }}"
ports: ports:
- name: http - name: http
containerPort: 1339 containerPort: 1339

View File

@ -2,18 +2,18 @@
storageClassName: standard # used by Kind storageClassName: standard # used by Kind
managedBy: tilt managedBy: tilt
link2cid: link2cid:
containerName: fp/link2cid imageName: fp/link2cid
next: next:
containerName: fp/next imageName: fp/next
certIssuer: letsencrypt-staging certIssuer: letsencrypt-staging
hostname: next.futureporn.svc.cluster.local hostname: next.futureporn.svc.cluster.local
capture: capture:
containerName: fp/capture imageName: fp/capture
scout: scout:
manager: manager:
containerName: fp/scout-manager imageName: fp/scout-manager
worker: worker:
containerName: fp/scout-worker imageName: fp/scout-worker
replicas: 1 replicas: 1
pubsubServerUrl: https://realtime.futureporn.svc.cluster.local/faye pubsubServerUrl: https://realtime.futureporn.svc.cluster.local/faye
certIssuer: letsencrypt-staging certIssuer: letsencrypt-staging
@ -21,7 +21,7 @@ scout:
cdnBucketUrl: https://fp-dev.b-cdn.net cdnBucketUrl: https://fp-dev.b-cdn.net
s3BucketName: fp-dev s3BucketName: fp-dev
strapi: strapi:
containerName: fp/strapi imageName: fp/strapi
port: 1339 port: 1339
url: https://strapi.piko.sbtp.xyz url: https://strapi.piko.sbtp.xyz
certIssuer: letsencrypt-staging certIssuer: letsencrypt-staging
@ -30,7 +30,7 @@ strapi:
ngrok: ngrok:
hostname: grateful-engaging-cicada.ngrok-free.app hostname: grateful-engaging-cicada.ngrok-free.app
realtime: realtime:
containerName: fp/realtime imageName: fp/realtime
adminEmail: cj@futureporn.net adminEmail: cj@futureporn.net
chisel: chisel:
exitNodeIp: "155.138.254.201" exitNodeIp: "155.138.254.201"

View File

@ -1,23 +1,23 @@
storageClassName: vultr-block-storage-hdd storageClassName: vultr-block-storage-hdd
link2cid: link2cid:
containerName: gitea.futureporn.net/futureporn/link2cid:latest imageName: gitea.futureporn.net/futureporn/link2cid:latest
scout: scout:
manager: manager:
containerName: gitea.futureporn.net/futureporn/scout-manager:latest imageName: gitea.futureporn.net/futureporn/scout-manager:latest
worker: worker:
containerName: gitea.futureporn.net/futureporn/scout-worker:latest imageName: gitea.futureporn.net/futureporn/scout-worker:latest
replicas: 2 replicas: 2
pubsubServerUrl: https://realtime.futureporn.net/faye pubsubServerUrl: https://realtime.futureporn.net/faye
cdnBucketUrl: https://futureporn-b2.b-cdn.net cdnBucketUrl: https://futureporn-b2.b-cdn.net
s3BucketName: futureporn s3BucketName: futureporn
next: next:
containerName: gitea.futureporn.net/futureporn/next:latest imageName: gitea.futureporn.net/futureporn/next:latest
certIssuer: letsencrypt-staging certIssuer: letsencrypt-staging
hostname: next.sbtp.xyz hostname: next.sbtp.xyz
capture: capture:
containerName: gitea.futureporn.net/futureporn/capture:latest imageName: gitea.futureporn.net/futureporn/capture:latest
strapi: strapi:
containerName: sjc.vultrcr.com/fpcontainers/strapi imageName: sjc.vultrcr.com/fpcontainers/strapi
port: 1339 port: 1339
url: https://portal.futureporn.net url: https://portal.futureporn.net
certIssuer: letsencrypt-prod certIssuer: letsencrypt-prod

View File

@ -1,9 +1,17 @@
#!/bin/bash #!/bin/bash
## this way is annoying because deployment asks for git password
# flux bootstrap git \
# --kubeconfig /home/cj/.kube/vke.yaml \
# --url=https://gitea.futureporn.net/futureporn/fp.git \
# --branch=main \
# --username=cj_clippy \
# --token-auth=true \
# --path=clusters/production
## this way is more automatic although it does ask for yes/no confirmation that the ssh key has repo access
flux bootstrap git \ flux bootstrap git \
--kubeconfig /home/cj/.kube/vke.yaml \ --url="ssh://git@gitea.futureporn.net:2222/futureporn/fp" \
--url=https://gitea.futureporn.net/futureporn/fp.git \
--branch=main \ --branch=main \
--username=cj_clippy \ --path="clusters/production" \
--token-auth=true \ --private-key-file=/home/cj/.ssh/fp-flux
--path=clusters/production

View File

@ -2,10 +2,6 @@
source .env source .env
kubectl --namespace futureporn delete secret uwu-auth --ignore-not-found
kubectl --namespace futureporn create secret generic uwu-auth \
--from-literal=auth=${CHISEL_AUTH}
kubectl --namespace futureporn delete secret frp --ignore-not-found kubectl --namespace futureporn delete secret frp --ignore-not-found
kubectl --namespace futureporn create secret generic frp \ kubectl --namespace futureporn create secret generic frp \