-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add reverse proxy deployment Signed-off-by: Ammar Lakis <[email protected]> * Serve robots.txt for prow status dashboard Signed-off-by: Ammar Lakis <[email protected]> * Fix service selector for reverse proxy Signed-off-by: Ammar Lakis <[email protected]> * Add liveness and readiness probes for reverse proxy container Signed-off-by: Ammar Lakis <[email protected]> * Host static files on reverse proxy Signed-off-by: Ammar Lakis <[email protected]> * Rename reverse proxy to web server Signed-off-by: Ammar Lakis <[email protected]> * Add web server to deployment script Signed-off-by: Ammar Lakis <[email protected]> * Move prow static files under cluster folder Signed-off-by: Ammar Lakis <[email protected]> * Add explaination for updating static files Signed-off-by: Ammar Lakis <[email protected]> * Rewording Co-authored-by: Przemek Pokrywka <[email protected]> * Update prow/cluster/README.md Co-authored-by: Aleksandra Simeonova <[email protected]> Co-authored-by: Przemek Pokrywka <[email protected]> Co-authored-by: Aleksandra Simeonova <[email protected]>
- Loading branch information
1 parent
04f1e7b
commit 94837ee
Showing
6 changed files
with
97 additions
and
2 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
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,82 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: web-server | ||
namespace: default | ||
labels: | ||
app: web-server | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: web-server | ||
template: | ||
metadata: | ||
labels: | ||
app: web-server | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1.20-alpine | ||
ports: | ||
- containerPort: 80 | ||
volumeMounts: | ||
- name: config | ||
mountPath: /etc/nginx/conf.d/ | ||
- name: static-files | ||
mountPath: /usr/share/nginx/html/ | ||
livenessProbe: | ||
httpGet: | ||
path: /robots.txt | ||
port: 80 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 3 | ||
timeoutSeconds: 30 | ||
readinessProbe: | ||
httpGet: | ||
path: /robots.txt | ||
port: 80 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 3 | ||
timeoutSeconds: 30 | ||
volumes: | ||
- name: config | ||
configMap: | ||
name: web-server-config | ||
- name: static-files | ||
configMap: | ||
name: static-files | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: web-server-config | ||
namespace: default | ||
data: | ||
default.conf: | | ||
server { | ||
listen 80; | ||
server_name _; | ||
location / { | ||
root /usr/share/nginx/html/; | ||
} | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: web-server | ||
namespace: default | ||
labels: | ||
app: web-server | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: web-server | ||
ports: | ||
- name: http | ||
port: 80 |
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,2 @@ | ||
User-agent: * | ||
Disallow: / |
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