mirror of
https://github.com/pragma-/pbot.git
synced 2025-12-13 12:17:22 +01:00
Let's try to deploy it now.
This commit is contained in:
parent
4969cf00ab
commit
3b023f34be
@ -1,4 +1,4 @@
|
|||||||
name: Deploy cantdidnt for Libera
|
name: Deploy candide for Libera
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -10,8 +10,9 @@ env:
|
|||||||
GKE_CLUSTER: pragma
|
GKE_CLUSTER: pragma
|
||||||
GKE_ZONE: us-central1-c
|
GKE_ZONE: us-central1-c
|
||||||
DEPLOYMENT_NAME: candide
|
DEPLOYMENT_NAME: candide
|
||||||
|
NAMESPACE: candide
|
||||||
REPOSITORY: pbot
|
REPOSITORY: pbot
|
||||||
IMAGE: candide
|
IMAGE: pbot
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-deploy-gke-prod:
|
build-deploy-gke-prod:
|
||||||
@ -75,3 +76,8 @@ jobs:
|
|||||||
# ./kustomize build . | kubectl apply -f -
|
# ./kustomize build . | kubectl apply -f -
|
||||||
# kubectl rollout status deployment/$DEPLOYMENT_NAME
|
# kubectl rollout status deployment/$DEPLOYMENT_NAME
|
||||||
# kubectl get services -o wide
|
# kubectl get services -o wide
|
||||||
|
|
||||||
|
- name: Deploy image
|
||||||
|
run: |-
|
||||||
|
sed -i -e 's/IMAGE_PLACEHOLDER/'$PROJECT_ID/$REPOSITORY/$IMAGE:${{ github.sha }}'/' k8s/deployment.yaml
|
||||||
|
kubectl apply -f k8s/deployment.yaml
|
||||||
48
k8s/deployment.yaml
Normal file
48
k8s/deployment.yaml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: candide
|
||||||
|
namespace: candide
|
||||||
|
labels:
|
||||||
|
app: candide
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: candide
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: candide
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: candide
|
||||||
|
image: IMAGE_PLACEHOLDER
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /mnt/persistent
|
||||||
|
name: persistent
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "0.1"
|
||||||
|
memory: 100Mi
|
||||||
|
limits:
|
||||||
|
cpu: "0.5"
|
||||||
|
memory: 500Mi
|
||||||
|
volumes:
|
||||||
|
- name: persistent
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: candide-storage
|
||||||
|
---
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: candide-storage
|
||||||
|
namespace: candide
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
Loading…
x
Reference in New Issue
Block a user