Skip to content

Commit

Permalink
fix gitignore kind
Browse files Browse the repository at this point in the history
  • Loading branch information
elebescond committed Jan 28, 2021
1 parent 036a88d commit f50af4a
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tock-mongo-data/
kind
./kind
115 changes: 115 additions & 0 deletions mongo/kind/persistent-volume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: mongodb-sc
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: mongo-pv-mongo-0
spec:
capacity:
storage: 200Mi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: mongodb-sc
local:
path: /tmp/tock-mongo/mongo-0
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: tock.ai/type
operator: In
values:
- tock
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: mongo-pv-mongo-1
spec:
capacity:
storage: 200Mi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: mongodb-sc
local:
path: /tmp/tock-mongo/mongo-1
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: tock.ai/type
operator: In
values:
- tock
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: mongo-pv-mongo-2
spec:
capacity:
storage: 200Mi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: mongodb-sc
local:
path: /tmp/tock-mongo/mongo-2
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: tock.ai/type
operator: In
values:
- tock
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mongo-pvc-mongo-0
spec:
storageClassName: mongodb-sc
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 100Mi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mongo-pvc-mongo-1
spec:
storageClassName: mongodb-sc
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 100Mi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mongo-pvc-mongo-2
spec:
storageClassName: mongodb-sc
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 100Mi
13 changes: 13 additions & 0 deletions tock-studio/ingress/kind/tock-studio.ing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: tock-studio
spec:
rules:
- host: tock-studio
http:
paths:
- path: /
backend:
serviceName: bot-admin-svc
servicePort: 8080

0 comments on commit f50af4a

Please sign in to comment.