Skip to content

Commit

Permalink
Remap local files to relative paths to avoid bindings to local machine
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Pavlovskiy committed Aug 17, 2023
1 parent 10a27af commit 37b5acf
Show file tree
Hide file tree
Showing 10 changed files with 424 additions and 20 deletions.
7 changes: 6 additions & 1 deletion .k8s/local/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ metadata:
uid: a9e1aed7-8b58-436b-b16d-a79932ecbfe0
```

This line enables website app to access the SSO over the external address.
This line enables website app to access the SSO over the external address.


# A command to initialize minikube cluster

minikube start --mount-string="$(pwd [or any other sort to specify this repository's root directory]):/minikube-host" --mount --addons=ingress,coredns
2 changes: 1 addition & 1 deletion .k8s/local/carres-keycloak-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ spec:
volumes:
- name: keycloak-dump
hostPath:
path: /minikube-host/ars/Code/Personal/java/cars-reservation/apps/keycloak/realm.json
path: /minikube-host/apps/keycloak/realm.json
type: File
11 changes: 11 additions & 0 deletions .k8s/local/carres-rmq-persistent-volume-claim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: rmq-pv-claim
spec:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
23 changes: 23 additions & 0 deletions .k8s/local/carres-rmq-persistent-volume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: rmq-pv
labels:
type: local
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: local-path
local:
path: /minikube-host/apps/rmq/files
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/os
operator: In
values: ["linux"]
Loading

0 comments on commit 37b5acf

Please sign in to comment.