Order the yaml files a bit to make it easier to deploy fresh

This commit is contained in:
R. Tyler Croy 2017-12-02 19:16:51 -08:00
parent 33987205a5
commit 9b624a8da5
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
8 changed files with 13 additions and 85 deletions

13
k8s/00-namespaces.yaml Normal file
View File

@ -0,0 +1,13 @@
---
apiVersion: "v1"
kind: "List"
items:
- apiVersion: v1
kind: Namespace
metadata:
name: 'webapp'
- apiVersion: v1
kind: Namespace
metadata:
name: 'canary'

View File

@ -2,11 +2,6 @@
apiVersion: "v1"
kind: "List"
items:
- apiVersion: v1
kind: Namespace
metadata:
name: 'webapp'
- apiVersion: v1
kind: Service
metadata:

View File

@ -2,11 +2,6 @@
apiVersion: 'v1'
kind: 'List'
items:
- apiVersion: v1
kind: Namespace
metadata:
name: 'canary'
- apiVersion: v1
kind: Service
metadata:

View File

@ -1,75 +0,0 @@
---
apiVersion: v1
kind: "List"
items:
# jenkins
- apiVersion: "v1"
kind: "PersistentVolume"
metadata:
name: 'nginx'
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 50M
gcePersistentDisk:
pdName: 'nginx'
fsType: ext4
- apiVersion: "v1"
kind: "PersistentVolumeClaim"
metadata:
name: 'nginx'
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50M
- apiVersion: "v1"
kind: "ReplicationController"
metadata:
name: 'nginx'
labels:
name: 'nginx'
spec:
replicas: 1
template:
metadata:
name: 'nginx'
labels:
name: 'nginx'
spec:
containers:
- name: 'nginx'
image: 'rtyler/codevalet-proxy:latest'
imagePullPolicy: Always
ports:
- name: 'http'
containerPort: 80
- name: 'http-tls'
containerPort: 443
env:
- name: PRODUCTION
value: 'true'
- name: LETSENCRYPT
value: 'true'
volumeMounts:
- name: 'nginx'
mountPath: '/etc/letsencrypt'
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 30
timeoutSeconds: 3
tcpSocket:
port: 443
initialDelaySeconds: 30
timeoutSeconds: 3
volumes:
- name: 'nginx'
persistentVolumeClaim:
claimName: 'nginx'
# vim: ft=yaml