Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions apps/kube/irc/manifests/irc-redirect-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,18 @@ data:
<script>window.location.replace("https://chat.kbve.com" + window.location.pathname + window.location.search);</script>
</body>
</html>
nginx.conf: |
worker_processes 1;
events {
worker_connections 128;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
}
}
12 changes: 11 additions & 1 deletion apps/kube/irc/manifests/irc-redirect-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ spec:
- name: html
mountPath: /usr/share/nginx/html
readOnly: true
- name: nginx-conf
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
readOnly: true
resources:
requests:
memory: '16Mi'
cpu: '10m'
limits:
memory: '32Mi'
memory: '64Mi'
cpu: '50m'
livenessProbe:
httpGet:
Expand All @@ -49,6 +53,12 @@ spec:
- name: html
configMap:
name: irc-redirect-html
- name: nginx-conf
configMap:
name: irc-redirect-html
items:
- key: nginx.conf
path: nginx.conf
---
apiVersion: v1
kind: Service
Expand Down