diff --git a/current_deployment_fixme.yaml b/current_deployment_fixme.yaml new file mode 100644 index 00000000..b41c98d9 --- /dev/null +++ b/current_deployment_fixme.yaml @@ -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 diff --git a/kubernetes.yaml b/kubernetes_fixme.yaml similarity index 79% rename from kubernetes.yaml rename to kubernetes_fixme.yaml index 1e73834c..9f6ebed3 100644 --- a/kubernetes.yaml +++ b/kubernetes_fixme.yaml @@ -30,7 +30,7 @@ metadata: spec: accessModes: - ReadWriteOnce - storageClassName: manual + storageClassName: local-storage resources: requests: storage: 1Gi @@ -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 @@ -69,7 +69,7 @@ spec: spec: containers: - name: agtern - image: ghcr.io/agtern:dev + image: jeremyeastham/agtern:dev ports: - containerPort: 8000 volumeMounts: @@ -77,13 +77,13 @@ spec: 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 ---