Last active
June 16, 2018 18:16
-
-
Save barkbay/3e499dcb1fd74356b240bf1d4916b032 to your computer and use it in GitHub Desktop.
This file contains 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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: ceph | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: ceph | |
namespace: ceph | |
--- | |
kind: DaemonSet | |
apiVersion: extensions/v1beta1 | |
metadata: | |
name: ceph-osd | |
namespace: ceph | |
labels: | |
app: ceph | |
daemon: osd | |
spec: | |
template: | |
metadata: | |
labels: | |
app: ceph | |
daemon: osd | |
spec: | |
hostNetwork: true | |
serviceAccountName: ceph | |
nodeSelector: | |
node-type: demo-storage | |
volumes: | |
- name: ceph-conf | |
hostPath: | |
path: /data/ceph/etc | |
- name: ceph-data | |
hostPath: | |
path: /data/ceph/var_lib | |
- name: var-run | |
emptyDir: {} | |
containers: | |
- name: osd-pod | |
image: ceph/daemon:latest | |
args: ["demo"] | |
imagePullPolicy: IfNotPresent | |
volumeMounts: | |
- name: ceph-conf | |
mountPath: /etc/ceph | |
- name: ceph-data | |
mountPath: /var/lib/ceph | |
- name: var-run | |
mountPath: /var/run | |
securityContext: | |
privileged: true | |
env: | |
- name: MON_IP | |
valueFrom: | |
fieldRef: | |
fieldPath: status.podIP | |
- name: CEPH_PUBLIC_NETWORK | |
value: "0.0.0.0/0" | |
- name: CEPH_DEMO_UID | |
value: k8s-demo | |
- name: CEPH_DEMO_ACCESS_KEY | |
value: demo | |
- name: CEPH_DEMO_SECRET_KEY | |
value: demo | |
- name: CEPH_DEMO_BUCKET | |
value: "demo-bucket" | |
livenessProbe: | |
tcpSocket: | |
port: 6789 | |
initialDelaySeconds: 60 | |
timeoutSeconds: 5 | |
readinessProbe: | |
tcpSocket: | |
port: 6789 | |
timeoutSeconds: 5 | |
resources: | |
requests: | |
memory: "256Mi" | |
cpu: "1000m" | |
limits: | |
memory: "1024Mi" | |
cpu: "2000m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment