charts: add nginx chart

This commit is contained in:
Sameer Naik
2016-03-23 23:26:56 +05:30
parent 7821a5477d
commit 8e1c3b7b7b
4 changed files with 86 additions and 0 deletions

10
nginx/Chart.yaml Normal file
View File

@@ -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 <containers@bitnami.com>
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).

5
nginx/README.md Normal file
View File

@@ -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).

View File

@@ -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: {}

View File

@@ -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