Order the yaml files a bit to make it easier to deploy fresh
This commit is contained in:
parent
33987205a5
commit
9b624a8da5
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
apiVersion: "v1"
|
||||
kind: "List"
|
||||
items:
|
||||
- apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: 'webapp'
|
||||
|
||||
- apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: 'canary'
|
|
@ -2,11 +2,6 @@
|
|||
apiVersion: "v1"
|
||||
kind: "List"
|
||||
items:
|
||||
- apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: 'webapp'
|
||||
|
||||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
|
@ -2,11 +2,6 @@
|
|||
apiVersion: 'v1'
|
||||
kind: 'List'
|
||||
items:
|
||||
- apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: 'canary'
|
||||
|
||||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
|
@ -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
|
Loading…
Reference in New Issue