Skip to content

Commit

Permalink
Create Kubernetes deployment files (TODO: FIX)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyEastham committed Dec 1, 2023
1 parent 462d7e9 commit b87239c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 12 deletions.
38 changes: 38 additions & 0 deletions current_deployment_fixme.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# FIXME This is the file that was used to deploy the current version of the cluster

apiVersion: apps/v1
kind: Deployment
metadata:
name: agtern-deployment
labels:
app: agtern
spec:
replicas: 1
selector:
matchLabels:
app: agtern
template:
metadata:
labels:
app: agtern
spec:
containers:
- name: agtern
image: jeremyeastham/agtern:dev
ports:
- containerPort: 8000

---

apiVersion: v1
kind: Service
metadata:
name: agtern-service
spec:
selector:
app: agtern
ports:
- protocol: TCP
port: 80
targetPort: 8000
type: LoadBalancer
24 changes: 12 additions & 12 deletions kubernetes.yaml → kubernetes_fixme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metadata:
spec:
accessModes:
- ReadWriteOnce
storageClassName: manual
storageClassName: local-storage
resources:
requests:
storage: 1Gi
Expand All @@ -44,21 +44,21 @@ metadata:
spec:
accessModes:
- ReadWriteOnce
storageClassName: manual
storageClassName: local-storage
resources:
requests:
storage: 1Gi

---

apiVersion: v1
apiVersion: apps/v1
kind: Deployment
metadata:
name: agtern-deployment
labels:
app: agtern
spec:
replicas: 0
replicas: 1
selector:
matchLabels:
app: agtern
Expand All @@ -69,21 +69,21 @@ spec:
spec:
containers:
- name: agtern
image: ghcr.io/agtern:dev
image: jeremyeastham/agtern:dev
ports:
- containerPort: 8000
volumeMounts:
- name: data-volume
mountPath: /app/data
- name: log-volume
mountPath: /app/log
volumes:
- name: data-volume
persistentVolumeClaim:
claimName: data-pvc
- name: log-volume
persistentVolumeClaim:
claimName: config-pvc
volumes:
- name: data-volume
persistentVolumeClaim:
claimName: data-pvc
- name: log-volume
persistentVolumeClaim:
claimName: log-pvc

---

Expand Down

0 comments on commit b87239c

Please sign in to comment.