Skip to content

Instantly share code, notes, and snippets.

@jarrpa
Created June 29, 2018 18:24
Show Gist options
  • Save jarrpa/5a2b697ac84c070f7a2a148581bdc4a9 to your computer and use it in GitHub Desktop.
Save jarrpa/5a2b697ac84c070f7a2a148581bdc4a9 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: 2018-06-29T18:10:54Z
generateName: demo-0-6c84b49cc4-
labels:
anthill: demo-node
demo: gluster-node
glusterfs-node: demo-0.demo
name: demo-0
pod-template-hash: "2740605770"
name: demo-0-6c84b49cc4-qd5vq
namespace: anthill
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: demo-0-6c84b49cc4
uid: c385b5c8-7bc7-11e8-a49c-525400610f84
resourceVersion: "807368"
selfLink: /api/v1/namespaces/anthill/pods/demo-0-6c84b49cc4-qd5vq
uid: c3894717-7bc7-11e8-a49c-525400610f84
spec:
containers:
- env:
- name: GLUSTERFS_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.labels['name']
image: jarrpa/gluster-fedora-minimal:dev
imagePullPolicy: Always
livenessProbe:
failureThreshold: 50
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 24007
timeoutSeconds: 3
name: glusterfs
ports:
- containerPort: 3260
protocol: TCP
- containerPort: 24006
protocol: TCP
- containerPort: 24007
protocol: TCP
readinessProbe:
failureThreshold: 50
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 24007
timeoutSeconds: 3
resources:
requests:
cpu: 100m
memory: 100Mi
securityContext:
capabilities:
add:
- SYS_MODULE
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /glusterfs
name: gluster-state
- mountPath: /usr/lib/modules
name: kernel-modules
readOnly: true
- mountPath: /run
name: run
- mountPath: /run/lvm
name: lvm
- mountPath: /dev
name: dev
- mountPath: /dev/gluster
name: blkdevbridge
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-z9bt4
readOnly: true
dnsPolicy: ClusterFirst
hostname: demo-0
initContainers:
- args:
- cp -a $(DEVICES) /mnt
command:
- /bin/sh
- -c
env:
- name: DEVICES
value: ' /demo-0-0'
image: busybox:latest
imagePullPolicy: Always
name: blkdevmapper
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeDevices:
- devicePath: /demo-0-0
name: demo-0-0
volumeMounts:
- mountPath: /mnt
name: blkdevbridge
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-z9bt4
readOnly: true
nodeName: node0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
subdomain: demo
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- emptyDir: {}
name: run
- hostPath:
path: /run/lvm
type: ""
name: lvm
- hostPath:
path: /dev
type: ""
name: dev
- emptyDir:
medium: Memory
name: blkdevbridge
- name: gluster-state
persistentVolumeClaim:
claimName: demo-0-state-claim
- name: kernel-modules
persistentVolumeClaim:
claimName: demo-0-kernel-modules-claim
- name: demo-0-0
persistentVolumeClaim:
claimName: demo-0-0-claim
- name: default-token-z9bt4
secret:
defaultMode: 420
secretName: default-token-z9bt4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment