text stringlengths 0 37.6k |
|---|
{{- if .Values.hyperparams.batchsize }} |
- --batch_size |
- "{{ .Values.hyperparams.batchsize }}" |
{{- end }} |
{{- if .Values.hyperparams.trainsteps }} |
- --train_steps |
- "{{ .Values.hyperparams.trainsteps }}" |
{{- end }} |
{{- if .Values.hyperparams.datadir }} |
- --data_dir |
- "{{ .Values.hyperparams.datadir }}" |
{{- end }} |
{{- if .Values.hyperparams.logdir }} |
- --log_dir |
- "{{ .Values.hyperparams.logdir }}" |
{{- end }} |
{{- if .Values.hyperparams.hiddenunits }} |
- --hidden_units |
- "{{ .Values.hyperparams.hiddenunits }}" |
{{- end }} |
env: |
- name: WORKER_HOSTS |
valueFrom: |
configMapKeyRef: |
name: {{ template "distributed-tensorflow.fullname" . }} |
key: worker.hostList |
- name: PS_HOSTS |
valueFrom: |
configMapKeyRef: |
name: {{ template "distributed-tensorflow.fullname" . }} |
key: ps.hostList |
- name: POD_NAME |
valueFrom: |
fieldRef: |
fieldPath: metadata.name |
- name: JOB_NAME |
value: worker |
{{- if .Values.worker.env }} |
{{- range $key, $value := .Values.worker.env }} |
- name: "{{ $key }}" |
value: "{{ $value }}" |
{{- end }} |
{{- end }} |
ports: |
- containerPort: {{ .Values.worker.port }} |
{{- if .Values.volumeMounts }} |
volumeMounts: |
{{ toYaml .Values.volumeMounts | indent 10 }} |
{{- end }} |
{{- if gt (int .Values.worker.gpuCount) 0 }} |
resources: |
limits: |
nvidia.com/gpu: {{- .Values.worker.gpuCount }} |
request: |
nvidia.com/gpu: {{- .Values.worker.gpuCount }} |
{{- end }} |
<|endoftext|> |
# k8s_docs_shirt-resource-definition.yaml |
apiVersion: apiextensions.k8s.io/v1 |
kind: CustomResourceDefinition |
metadata: |
name: shirts.stable.example.com |
spec: |
group: stable.example.com |
scope: Namespaced |
names: |
plural: shirts |
singular: shirt |
kind: Shirt |
versions: |
- name: v1 |
served: true |
storage: true |
schema: |
openAPIV3Schema: |
type: object |
properties: |
spec: |
type: object |
properties: |
color: |
type: string |
size: |
type: string |
selectableFields: |
- jsonPath: .spec.color |
- jsonPath: .spec.size |
additionalPrinterColumns: |
- jsonPath: .spec.color |
name: Color |
type: string |
- jsonPath: .spec.size |
name: Size |
type: string |
<|endoftext|> |
# helm_charts_yarn-nm-svc.yaml |
# A headless service to create DNS records |
apiVersion: v1 |
kind: Service |
metadata: |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.