Compare commits
No commits in common. "274086358ea1395d0448fb5e47a140a2bed593ed" and "d52786aa4449abd550b2cc2040a563eaf7a65e9c" have entirely different histories.
274086358e
...
d52786aa44
9
app.rb
9
app.rb
@ -363,12 +363,3 @@ route :delete, :get, :patch, :post, :put, "/status/:code" do
|
|||||||
code = Integer(params[:code])
|
code = Integer(params[:code])
|
||||||
status code if code.between? 100, 599
|
status code if code.between? 100, 599
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/chunked/:delay" do
|
|
||||||
delay = Float(params[:delay])
|
|
||||||
stream do |out|
|
|
||||||
out << "Hello, world!\n"
|
|
||||||
sleep delay
|
|
||||||
out << "Hello, world!\n"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: kipunji-configmap
|
name: toy-configmap
|
||||||
namespace: kipunji
|
namespace: toy
|
||||||
annotations:
|
annotations:
|
||||||
reloader.stakater.com/match: "true"
|
reloader.stakater.com/match: "true"
|
||||||
data:
|
data:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: kipunji-ingress
|
name: toy-ingress
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- http:
|
- http:
|
||||||
@ -11,6 +11,6 @@ spec:
|
|||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: kipunji
|
name: toy
|
||||||
port:
|
port:
|
||||||
name: web
|
name: web
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: kipunji
|
namespace: toy
|
||||||
resources:
|
resources:
|
||||||
- secret.yaml
|
- secret.yaml
|
||||||
- configmap.yaml
|
- configmap.yaml
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Rollout
|
kind: Rollout
|
||||||
metadata:
|
metadata:
|
||||||
name: kipunji
|
name: toy
|
||||||
annotations:
|
annotations:
|
||||||
reloader.stakater.com/auto: "true"
|
reloader.stakater.com/auto: "true"
|
||||||
spec:
|
spec:
|
||||||
@ -21,15 +21,15 @@ spec:
|
|||||||
revisionHistoryLimit: 2
|
revisionHistoryLimit: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: kipunji
|
app: toy
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: kipunji
|
app: toy
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: kipunji
|
- name: toy
|
||||||
image: git.kill0.net/ryanc/kipunji:latest
|
image: git.kill0.net/ryanc/toy:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- name: web
|
- name: web
|
||||||
@ -38,12 +38,12 @@ spec:
|
|||||||
- name: SESSION_SECRET
|
- name: SESSION_SECRET
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: kipunji-session-secret
|
name: toy-session-secret
|
||||||
key: session_secret
|
key: session_secret
|
||||||
optional: true
|
optional: true
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: kipunji-configmap
|
name: toy-configmap
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /livez
|
path: /livez
|
||||||
|
@ -3,8 +3,8 @@ apiVersion: bitnami.com/v1alpha1
|
|||||||
kind: SealedSecret
|
kind: SealedSecret
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: kipunji-session-secret
|
name: toy-session-secret
|
||||||
namespace: kipunji
|
namespace: toy
|
||||||
annotations:
|
annotations:
|
||||||
reloader.stakater.com/match: "true"
|
reloader.stakater.com/match: "true"
|
||||||
spec:
|
spec:
|
||||||
@ -13,5 +13,5 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: kipunji-session-secret
|
name: toy-session-secret
|
||||||
namespace: kipunji
|
namespace: toy
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: kipunji
|
name: toy
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
@ -10,4 +10,4 @@ spec:
|
|||||||
port: 80
|
port: 80
|
||||||
targetPort: web
|
targetPort: web
|
||||||
selector:
|
selector:
|
||||||
app: kipunji
|
app: toy
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: kipunji
|
namespace: toy
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- ./app
|
- ./app
|
||||||
|
@ -2,19 +2,19 @@
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: kipunji-memcached
|
name: toy-memcached
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: kipunji-memcached
|
app: toy-memcached
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: kipunji-memcached
|
app: toy-memcached
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: kipunji-memcached
|
- name: toy-memcached
|
||||||
image: memcached:latest
|
image: memcached:latest
|
||||||
ports:
|
ports:
|
||||||
- name: memcached
|
- name: memcached
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: kipunji
|
namespace: toy
|
||||||
resources:
|
resources:
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- services.yaml
|
- services.yaml
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: kipunji-memcached
|
name: toy-memcached
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
@ -10,4 +10,4 @@ spec:
|
|||||||
port: 11211
|
port: 11211
|
||||||
targetPort: memcached
|
targetPort: memcached
|
||||||
selector:
|
selector:
|
||||||
app: kipunji-memcached
|
app: toy-memcached
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: kipunji
|
name: toy
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user