Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove secrets and pgadmin #10

Merged
merged 1 commit into from
Jul 14, 2024
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
18 changes: 17 additions & 1 deletion .github/workflows/ci-cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,26 @@ jobs:
curl -LO "https://dl.k8s.io/release/$(curl -sSL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin/

- name: Update kube config
run: aws eks update-kubeconfig --name ${{ vars.AWS_EKS_CLUSTER_NAME }} --region ${{ vars.AWS_REGION }}

- name: Create Kubernetes secret
run: |
kubectl create secret generic secret-group-18-fastfood-backend \
--from-literal=POSTGRES_USER=${{ secrets.POSTGRES_USER }} \
--from-literal=POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} \
--from-literal=JWT_SECRET=${{ secrets.JWT_SECRET }} \
--from-literal=JWT_ISSUER=${{ secrets.JWT_ISSUER }} \
--dry-run=client -o yaml | kubectl apply -f -

- name: Create Kubernetes configmap
run: |
kubectl create configmap configmap-group-18-fastfood-backend \
--from-literal=POSTGRES_DB=${{ secrets.POSTGRES_DB }} \
--from-literal=POSTGRES_HOST=${{ secrets.POSTGRES_HOST }} \
--dry-run=client -o yaml | kubectl apply -f -

- name: Deploy to Kubernetes
env:
K8S_DEPLOYMENT_NAME: ${{ vars.K8S_DEPLOYMENT_NAME }}
Expand Down
7 changes: 0 additions & 7 deletions infra/configmap.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions infra/postgres-admin-deployment.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions infra/secrets.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions infra/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,3 @@ spec:
ports:
- port: 5432
type: ClusterIP
---
kind: Service
apiVersion: v1
metadata:
name: pgadmin
spec:
selector:
app: pgadmin
ports:
- port: 80
nodePort: 30200
type: NodePort
Loading