-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vasiliy Motchenko
committed
Mar 2, 2024
1 parent
416a1e5
commit 5e817f4
Showing
9 changed files
with
132 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: mongo-pvc | ||
spec: | ||
storageClassName: "" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 4Gi | ||
volumeName: mongo-pv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: deny-db-traffic | ||
labels: | ||
app: reddit | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
app: reddit | ||
component: mongo | ||
policyTypes: | ||
- Ingress | ||
ingress: | ||
- from: | ||
- podSelector: | ||
matchLabels: | ||
app: reddit | ||
component: comment | ||
- podSelector: | ||
matchLabels: | ||
app: reddit | ||
component: post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: mongo-pv | ||
spec: | ||
capacity: | ||
storage: 4Gi | ||
accessModes: | ||
- ReadWriteOnce | ||
csi: | ||
driver: disk-csi-driver.mks.ycloud.io | ||
fsType: ext4 | ||
volumeHandle: fhmaa6j8o6aul1p9tuqb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDEzCCAfugAwIBAgIUV8Z9DuInPCTHWqm0HZPqbUwEpYEwDQYJKoZIhvcNAQEL | ||
BQAwGTEXMBUGA1UEAwwOMTU4LjE2MC4xMzYuMTcwHhcNMjQwMzAyMTIwMjQzWhcN | ||
MjUwMzAyMTIwMjQzWjAZMRcwFQYDVQQDDA4xNTguMTYwLjEzNi4xNzCCASIwDQYJ | ||
KoZIhvcNAQEBBQADggEPADCCAQoCggEBALCvVqp967CJKncTqrms0a1HAXqdO9cD | ||
anQPmhOuaQOrNN3CwYzbPgUmDGQE7lXAXIV1cWKZfO8JHwni63MGg6azxS0KN6bX | ||
FmhgTUqtaBJEJ7OVGJqGTRPJ4tnODRQjMK+UxKm9Eew1QhEYRrugzfqAw6EP+E0S | ||
jlz+zFID1yuK088sY7NlsRXRl/OpK+qkDBZJDJwM7RSIIkohw7DH3p2tViNGl0GT | ||
J/OQOtRpfNDbsbGharabUmDy+Z3JqM946LLprTUwgJE7M55bQH/Vne23L4FYN0qQ | ||
FQgc67yAFS9tObL/YVsB0mX7hOCBS0i5s3FDueNewscmUlru0UmtykUCAwEAAaNT | ||
MFEwHQYDVR0OBBYEFAkpQBzvZmlygGV7BbxOi7lPnXhIMB8GA1UdIwQYMBaAFAkp | ||
QBzvZmlygGV7BbxOi7lPnXhIMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEL | ||
BQADggEBAK4AFOdzm/vqfje+4ztZwCfJJnMFT8n/CgiFUCye+g2AYzUyXjP0tZjb | ||
oA8diVmZWkC7CJSUollytwT26NNNOeDlL7KNQdKKLTaSGl9FE4v8gExEjXTw8fHf | ||
bC7g03r6jX9PaZ9s3CijhENRh+lfu8eRZxEtjEk4SbhqrDGC26ziLET2O6gKZ9L5 | ||
nAtFFNJoco9qav0Ibl2P4m87dfMco2pHaobrgklQCVNU7/5tiTGwZv2o5HzGh4yH | ||
o2zhVF6fKt7/xSck4Y6cWWtB+SDS8Ug4yMcc5sYl0MS8iPJ/xcEOt4ekHiIqbM4G | ||
gMvRwZXJjRvo5Gla3EGcWxLbJRrAJmg= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCwr1aqfeuwiSp3 | ||
E6q5rNGtRwF6nTvXA2p0D5oTrmkDqzTdwsGM2z4FJgxkBO5VwFyFdXFimXzvCR8J | ||
4utzBoOms8UtCjem1xZoYE1KrWgSRCezlRiahk0TyeLZzg0UIzCvlMSpvRHsNUIR | ||
GEa7oM36gMOhD/hNEo5c/sxSA9critPPLGOzZbEV0ZfzqSvqpAwWSQycDO0UiCJK | ||
IcOwx96drVYjRpdBkyfzkDrUaXzQ27GxoWq2m1Jg8vmdyajPeOiy6a01MICROzOe | ||
W0B/1Z3tty+BWDdKkBUIHOu8gBUvbTmy/2FbAdJl+4TggUtIubNxQ7njXsLHJlJa | ||
7tFJrcpFAgMBAAECggEANVu+gJ6mnxnNiUiXNpvKdtoKyEzT1YtiisprbaYucL0z | ||
qgU3DqLniAaFl28lyx/c0TE2nOBdqpLGnOW61XISMD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fg5kYvpg/V5s7TbU75ZxUCDWQwvAA/fUSums | ||
zGJjubLFTvOU0o/Wq11Hnxc3v+SW3lqrQEGcoU7N28aUtgxCJw66t6cKC982Iky8 | ||
DTJ0JuVz/vLHyxBijRq2cWom | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: ui | ||
labels: | ||
app: reddit | ||
component: ui | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" | ||
kubernetes.io/ingress.allow-http: "false" | ||
spec: | ||
tls: | ||
- secretName: ui-ingress | ||
rules: | ||
- http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: ui | ||
port: | ||
number: 9292 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters