mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-16 12:40:37 +08:00
GKE: incorporate webserver into sslip.io
So far we've incorporated DNS & NTP, and now we incorporate the webserver (on port 80, no TLS)
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: sslip.io-nginx
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: sslip.io-nginx
|
||||
template:
|
||||
metadata:
|
||||
name: sslip.io-nginx-pod
|
||||
labels:
|
||||
app: sslip.io-nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: sslip-nginx-container
|
||||
image: cunnie/sslip.io-nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
resources:
|
||||
requests:
|
||||
memory: 32Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
@@ -31,6 +31,35 @@ spec:
|
||||
- 127.0.0.1.sslip.io
|
||||
- +short
|
||||
periodSeconds: 300
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: sslip.io-nginx
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: sslip.io-nginx
|
||||
template:
|
||||
metadata:
|
||||
name: sslip.io-nginx-pod
|
||||
labels:
|
||||
app: sslip.io-nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: sslip-nginx-container
|
||||
image: cunnie/sslip.io-nginx
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
resources:
|
||||
requests:
|
||||
memory: 32Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
# NTP
|
||||
# Thank you https://goglides.io/manage-ntp-using-kubernetes/90/
|
||||
---
|
||||
|
Reference in New Issue
Block a user