From 8e1c3b7b7b7e3f678d3d7b6bfe58b2bad3c8d89d Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Wed, 23 Mar 2016 23:26:56 +0530 Subject: [PATCH] charts: add nginx chart --- nginx/Chart.yaml | 10 +++++++ nginx/README.md | 5 ++++ nginx/manifests/nginx-rc.yaml | 53 ++++++++++++++++++++++++++++++++++ nginx/manifests/nginx-svc.yaml | 18 ++++++++++++ 4 files changed, 86 insertions(+) create mode 100644 nginx/Chart.yaml create mode 100644 nginx/README.md create mode 100644 nginx/manifests/nginx-rc.yaml create mode 100644 nginx/manifests/nginx-svc.yaml diff --git a/nginx/Chart.yaml b/nginx/Chart.yaml new file mode 100644 index 0000000000..e36c467926 --- /dev/null +++ b/nginx/Chart.yaml @@ -0,0 +1,10 @@ +name: nginx +home: http://www.nginx.org +source: +- https://github.com/bitnami/bitnami-docker-nginx +version: 0.1.0 +description: Chart for the nginx server +maintainers: +- Bitnami +details: |- + nginx is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server). diff --git a/nginx/README.md b/nginx/README.md new file mode 100644 index 0000000000..e8562e95a1 --- /dev/null +++ b/nginx/README.md @@ -0,0 +1,5 @@ +# Nginx + +> nginx (pronounced "engine-x") is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server). + +Based on the [Bitnami nginx](https://github.com/bitnami/bitnami-docker-nginx) image for docker, this Chart bootstraps a [nginx](http://www.nginx.org) deployment on a [Kubernetes](http://kubernetes.io) cluster using [Helm](https://helm.sh). diff --git a/nginx/manifests/nginx-rc.yaml b/nginx/manifests/nginx-rc.yaml new file mode 100644 index 0000000000..565c3f8f8e --- /dev/null +++ b/nginx/manifests/nginx-rc.yaml @@ -0,0 +1,53 @@ +apiVersion: v1 +kind: ReplicationController +metadata: + name: nginx + labels: + provider: nginx + heritage: bitnami +spec: + replicas: 1 + selector: + provider: nginx + version: 1.9.9-0 + template: + metadata: + labels: + provider: nginx + version: 1.9.9-0 + heritage: bitnami + spec: + containers: + - name: nginx + image: bitnami/nginx:1.9.9-0 + ports: + - name: http + containerPort: 80 + - name: https + containerPort: 443 + livenessProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 30 + timeoutSeconds: 5 + readinessProbe: + httpGet: + path: / + port: http + initialDelaySeconds: 5 + timeoutSeconds: 1 + volumeMounts: + - name: htdocs + mountPath: /app + - name: conf + mountPath: /bitnami/nginx/conf + - name: logs + mountPath: /bitnami/nginx/logs + volumes: + - name: htdocs + emptyDir: {} + - name: conf + emptyDir: {} + - name: logs + emptyDir: {} diff --git a/nginx/manifests/nginx-svc.yaml b/nginx/manifests/nginx-svc.yaml new file mode 100644 index 0000000000..1802335589 --- /dev/null +++ b/nginx/manifests/nginx-svc.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Service +metadata: + name: nginx + labels: + provider: nginx + heritage: bitnami +spec: + type: LoadBalancer + ports: + - name: http + port: 80 + targetPort: http + - name: https + port: 443 + targetPort: https + selector: + provider: nginx