Last active
March 10, 2017 14:51
-
-
Save t0mmyt/ba1623a08155423cf04457a12183cd1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: sensu-server-conf | |
namespace: cloud | |
data: | |
redis.json: | | |
{ | |
"redis": { | |
"host": "127.0.0.1", | |
"port": 6379 | |
} | |
} | |
transport.json: | | |
{ | |
"transport": { | |
"name": "redis", | |
"reconnect_on_error": true | |
} | |
} | |
--- | |
kind: StatefulSet | |
apiVersion: apps/v1beta1 | |
metadata: | |
name: sensu | |
namespace: cloud | |
spec: | |
serviceName: sensu | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: sensu | |
spec: | |
terminationGracePeriodSeconds: 30 | |
containers: | |
- name: redis | |
image: redis:3.0-alpine | |
ports: | |
- containerPort: 6379 | |
volumeMounts: | |
- name: redis-data | |
mountPath: /data | |
- name: sensu-api | |
image: sstarcher/sensu:0.26 | |
args: | |
- api | |
volumeMounts: | |
- name: sensu-server-conf | |
mountPath: /etc/sensu/conf.d | |
- name: sensu-server | |
image: sstarcher/sensu:0.26 | |
args: | |
- server | |
volumeMounts: | |
- name: sensu-server-conf | |
mountPath: /etc/sensu/conf.d | |
- name: uchiwa | |
image: sstarcher/uchiwa | |
ports: | |
- containerPort: 3000 | |
volumes: | |
- name: sensu-server-conf | |
configMap: | |
name: sensu-server-conf | |
volumeClaimTemplates: | |
- metadata: | |
name: redis-data | |
annotations: | |
volume.beta.kubernetes.io/storage-class: ssd | |
spec: | |
accessModes: [ "ReadWriteOnce" ] | |
resources: | |
requests: | |
storage: 1Gi | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: sensu | |
namespace: cloud | |
annotations: | |
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0 | |
dns.alpha.kubernetes.io/internal: alerts.usw.co | |
spec: | |
selector: | |
app: sensu | |
type: LoadBalancer | |
ports: | |
- name: uchiwa | |
protocol: TCP | |
port: 80 | |
targetPort: 3000 | |
- name: redis | |
protocol: TCP | |
port: 6379 | |
targetPort: 6379 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: sensu-server-conf | |
namespace: core | |
data: | |
redis.json: | | |
{ | |
"redis": { | |
"host": "127.0.0.1", | |
"port": 6379 | |
} | |
} | |
transport.json: | | |
{ | |
"transport": { | |
"name": "redis", | |
"reconnect_on_error": true | |
} | |
} | |
--- | |
kind: StatefulSet | |
apiVersion: apps/v1beta1 | |
metadata: | |
name: sensu | |
namespace: cloud | |
spec: | |
serviceName: sensu | |
replicas: 1 | |
revisionHistoryLimit: 1 | |
template: | |
metadata: | |
labels: | |
app: sensu | |
spec: | |
terminationGracePeriodSeconds: 30 | |
containers: | |
- name: redis | |
image: redis:3.0-alpine | |
ports: | |
- containerPort: 6379 | |
volumeMounts: | |
- name: redis-data | |
mountPath: /data | |
- name: sensu-api | |
image: sstarcher/sensu:0.26 | |
args: | |
- api | |
volumeMounts: | |
- name: sensu-server-conf | |
mountPath: /etc/sensu/conf.d | |
- name: sensu-server | |
image: sstarcher/sensu:0.26 | |
args: | |
- server | |
volumeMounts: | |
- name: sensu-server-conf | |
mountPath: /etc/sensu/conf.d | |
- name: uchiwa | |
image: sstarcher/uchiwa | |
ports: | |
- containerPort: 3000 | |
volumes: | |
- name: sensu-server-conf | |
configMap: | |
name: sensu-server | |
volumeClaimTemplates: | |
- metadata: | |
name: redis-data | |
annotations: | |
volume.beta.kubernetes.io/storage-class: ssd | |
spec: | |
accessModes: [ "ReadWriteOnce" ] | |
resources: | |
requests: | |
storage: 1Gi | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: sensu | |
namespace: cloud | |
annotations: | |
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0 | |
pod.beta.kubernetes.io/hostname: alerts.usw.co | |
spec: | |
selector: | |
app: sensu | |
type: LoadBalancer | |
ports: | |
- name: uchiwa | |
protocol: TCP | |
port: 80 | |
targetPort: 3000 | |
- name: redis | |
protocol: TCP | |
port: 6379 | |
targetPort: 6379 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment