Give the deployment some persistent storage
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
a85052a41a
commit
8a9b37cb02
|
@ -1,17 +1,10 @@
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
|
||||||
deployment.kubernetes.io/revision: "1"
|
|
||||||
creationTimestamp: "2020-01-27T19:50:47Z"
|
|
||||||
generation: 3
|
|
||||||
labels:
|
labels:
|
||||||
run: kardbot
|
run: kardbot
|
||||||
name: kardbot
|
name: kardbot
|
||||||
namespace: karaokards
|
namespace: karaokards
|
||||||
resourceVersion: "48537399"
|
|
||||||
selfLink: /apis/extensions/v1beta1/namespaces/karaokards/deployments/kardbot
|
|
||||||
uid: 502b4760-413e-11ea-94d8-9cb6540931b5
|
|
||||||
spec:
|
spec:
|
||||||
progressDeadlineSeconds: 600
|
progressDeadlineSeconds: 600
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
@ -31,7 +24,7 @@ spec:
|
||||||
run: kardbot
|
run: kardbot
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: imartyn/karaokardbot:0.0.1
|
- image: imartyn/karaokardbot:0.0.3-linux-amd64
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: kardbot
|
name: kardbot
|
||||||
ports:
|
ports:
|
||||||
|
@ -46,6 +39,8 @@ spec:
|
||||||
- mountPath: /app/strings.json
|
- mountPath: /app/strings.json
|
||||||
name: extracards
|
name: extracards
|
||||||
subPath: strings.json
|
subPath: strings.json
|
||||||
|
- mountPath: /data
|
||||||
|
name: data
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
schedulerName: default-scheduler
|
schedulerName: default-scheduler
|
||||||
|
@ -63,22 +58,6 @@ spec:
|
||||||
path: strings.json
|
path: strings.json
|
||||||
name: extracards
|
name: extracards
|
||||||
name: extracards
|
name: extracards
|
||||||
status:
|
- name: data
|
||||||
availableReplicas: 1
|
persistentVolumeClaim:
|
||||||
conditions:
|
claimName: kkard-data
|
||||||
- lastTransitionTime: "2020-01-27T19:50:47Z"
|
|
||||||
lastUpdateTime: "2020-01-27T20:05:34Z"
|
|
||||||
message: ReplicaSet "kardbot-6dff8d86dd" has successfully progressed.
|
|
||||||
reason: NewReplicaSetAvailable
|
|
||||||
status: "True"
|
|
||||||
type: Progressing
|
|
||||||
- lastTransitionTime: "2020-01-27T20:08:26Z"
|
|
||||||
lastUpdateTime: "2020-01-27T20:08:26Z"
|
|
||||||
message: Deployment has minimum availability.
|
|
||||||
reason: MinimumReplicasAvailable
|
|
||||||
status: "True"
|
|
||||||
type: Available
|
|
||||||
observedGeneration: 3
|
|
||||||
readyReplicas: 1
|
|
||||||
replicas: 1
|
|
||||||
updatedReplicas: 1
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
certmanager.k8s.io/cluster-issuer: letsencrypt
|
||||||
|
name: karaokards
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: karaokards.ing.martyn.berlin
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
serviceName: karaokards
|
||||||
|
servicePort: 80
|
||||||
|
path: /nope
|
||||||
|
- backend:
|
||||||
|
serviceName: karaokards
|
||||||
|
servicePort: 80
|
||||||
|
path: /
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- karaokards.ing.martyn.berlin
|
||||||
|
secretName: karaokards-cert
|
||||||
|
status:
|
||||||
|
loadBalancer: {}
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: kkard-data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
|
@ -0,0 +1,17 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
run: kardbot
|
||||||
|
name: karaokards
|
||||||
|
spec:
|
||||||
|
externalTrafficPolicy: Cluster
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 5353
|
||||||
|
selector:
|
||||||
|
run: kardbot
|
||||||
|
sessionAffinity: None
|
||||||
|
type: LoadBalancer
|
Loading…
Reference in New Issue