converted to go modules, added gorilla web toolkit, added test, changed yosoy to respond with JSON rather than plain text, added travis support
This commit is contained in:
53
test/deployment.yaml
Normal file
53
test/deployment.yaml
Normal file
@@ -0,0 +1,53 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: camarero
|
||||
labels:
|
||||
app.kubernetes.io/name: camarero
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: camarero
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: camarero
|
||||
spec:
|
||||
containers:
|
||||
- name: yosoy
|
||||
image: lukasz/yosoy
|
||||
env:
|
||||
- name: YOSOY_SHOW_ENVS
|
||||
value: "true"
|
||||
- name: YOSOY_SHOW_FILES
|
||||
value: "/etc/podinfo/labels,/etc/podinfo/annotations"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: podinfo
|
||||
mountPath: /etc/podinfo
|
||||
volumes:
|
||||
- name: podinfo
|
||||
downwardAPI:
|
||||
items:
|
||||
- path: "labels"
|
||||
fieldRef:
|
||||
fieldPath: metadata.labels
|
||||
- path: "annotations"
|
||||
fieldRef:
|
||||
fieldPath: metadata.annotations
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: camarero
|
||||
labels:
|
||||
app.kubernetes.io/name: camarero
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app.kubernetes.io/name: camarero
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
Reference in New Issue
Block a user