Last active
September 23, 2017 22:10
-
-
Save salrashid123/be20faa4046259732d87d37a47eecc2a 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
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: myapp-rs | |
labels: | |
type: myapp-rs-label | |
spec: | |
replicas: 1 | |
selector: | |
type: myapp | |
template: | |
metadata: | |
labels: | |
type: myapp | |
spec: | |
containers: | |
- name: frontend | |
image: salrashid123/single_node_filer | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 8080 | |
livenessProbe: | |
httpGet: | |
path: /_ah/health | |
port: 8080 | |
initialDelaySeconds: 30 | |
timeoutSeconds: 1 | |
env: | |
- name: CUR_TYPE | |
value: metadata.labels.type | |
- name: MY_POD_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.name | |
- name: MY_POD_IP | |
valueFrom: | |
fieldRef: | |
fieldPath: status.podIP | |
volumeMounts: | |
- mountPath: "/apps/data" | |
name: mypd | |
volumes: | |
- name: mypd | |
nfs: | |
path: "/data" | |
server: 10.240.0.10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment