commit
62a7f40eaa
3 changed files with 5 additions and 8 deletions
3
.github/workflows/deploy-postgres-prod.yml
vendored
3
.github/workflows/deploy-postgres-prod.yml
vendored
|
|
@ -32,9 +32,6 @@ jobs:
|
||||||
kubectl config set-context runner-context --cluster=microk8s --user=runner --namespace="$NAMESPACE"
|
kubectl config set-context runner-context --cluster=microk8s --user=runner --namespace="$NAMESPACE"
|
||||||
kubectl config use-context runner-context
|
kubectl config use-context runner-context
|
||||||
|
|
||||||
- name: Apply PROD secrets
|
|
||||||
run: kubectl apply -f db/k8s/secrets/
|
|
||||||
|
|
||||||
- name: Deploy PROD Postgres
|
- name: Deploy PROD Postgres
|
||||||
run: kubectl apply -f db/k8s/postgres/
|
run: kubectl apply -f db/k8s/postgres/
|
||||||
|
|
||||||
|
|
|
||||||
2
.github/workflows/juntekim.yml
vendored
2
.github/workflows/juntekim.yml
vendored
|
|
@ -37,7 +37,7 @@ jobs:
|
||||||
|
|
||||||
run-on-k8s:
|
run-on-k8s:
|
||||||
runs-on: mealcraft-runners # <-- your ARC scale set label
|
runs-on: mealcraft-runners # <-- your ARC scale set label
|
||||||
needs: Push-to-docker-hub
|
needs: Push-to-juntekim-to-docker-hub
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,17 +39,17 @@ spec:
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres
|
name: postgres-dev
|
||||||
namespace: dev
|
namespace: dev
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: postgres
|
app: postgres-dev
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: postgres
|
app: postgres-dev
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
|
|
@ -79,7 +79,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
selector:
|
selector:
|
||||||
app: postgres
|
app: postgres-dev
|
||||||
ports:
|
ports:
|
||||||
- port: 5432
|
- port: 5432
|
||||||
targetPort: 5432
|
targetPort: 5432
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue