charts/maskrcnn-optimized/charts/tensorboard/templates/tensorboard.yaml [1:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---
apiVersion: v1
kind: Service
metadata:
  name: {{ .Values.tensorboard.name }}
  namespace: {{ .Values.global.namespace }}
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-access-log-enabled: "false"
    service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled: "false"
    service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
    service.beta.kubernetes.io/aws-load-balancer-internal: "false"
spec:
  ports:
  - protocol: TCP
    port: {{ .Values.tensorboard.port }} 
    targetPort:  {{ .Values.tensorboard.target_port }}
  selector:
    app: {{ .Values.tensorboard.name }}
  type: LoadBalancer
  loadBalancerSourceRanges:
  - {{ .Values.global.source_cidr }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Values.tensorboard.name }}
  namespace: {{ .Values.global.namespace }}
  labels:
    app: {{ .Values.tensorboard.name }}
spec:
  replicas: 1
  selector:
    matchLabels:
     app: {{ .Values.tensorboard.name }}
  template:
    metadata:
      labels:
        app: {{ .Values.tensorboard.name }}
    spec:
      volumes:
      - name: {{ .Values.global.shared_fs }} 
        persistentVolumeClaim:
            claimName: {{ .Values.global.shared_pvc }}
      containers:
      - name:  {{ .Values.tensorboard.name }}
        command:
        - tensorboard
        args:
        - --logdir=/{{ .Values.global.shared_fs }}/{{ .Release.Name }}-{{ date "2006-01-02-15-04-05" .Release.Time  }}/train_log/maskrcnn
        image: {{ .Values.tensorboard.image }} 
        imagePullPolicy: {{ .Values.tensorboard.image_pull_policy }}
        ports:
        - containerPort:  {{ .Values.tensorboard.target_port }}
        volumeMounts:
        - mountPath: /{{ .Values.global.shared_fs }}
          name: {{ .Values.global.shared_fs }}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



charts/maskrcnn/charts/tensorboard/templates/tensorboard.yaml [1:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---
apiVersion: v1
kind: Service
metadata:
  name: {{ .Values.tensorboard.name }}
  namespace: {{ .Values.global.namespace }}
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-access-log-enabled: "false"
    service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled: "false"
    service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
    service.beta.kubernetes.io/aws-load-balancer-internal: "false"
spec:
  ports:
  - protocol: TCP
    port: {{ .Values.tensorboard.port }} 
    targetPort:  {{ .Values.tensorboard.target_port }}
  selector:
    app: {{ .Values.tensorboard.name }}
  type: LoadBalancer
  loadBalancerSourceRanges:
  - {{ .Values.global.source_cidr }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Values.tensorboard.name }}
  namespace: {{ .Values.global.namespace }}
  labels:
    app: {{ .Values.tensorboard.name }}
spec:
  replicas: 1
  selector:
    matchLabels:
     app: {{ .Values.tensorboard.name }}
  template:
    metadata:
      labels:
        app: {{ .Values.tensorboard.name }}
    spec:
      volumes:
      - name: {{ .Values.global.shared_fs }} 
        persistentVolumeClaim:
            claimName: {{ .Values.global.shared_pvc }}
      containers:
      - name:  {{ .Values.tensorboard.name }}
        command:
        - tensorboard
        args:
        - --logdir=/{{ .Values.global.shared_fs }}/{{ .Release.Name }}-{{ date "2006-01-02-15-04-05" .Release.Time  }}/train_log/maskrcnn
        image: {{ .Values.tensorboard.image }} 
        imagePullPolicy: {{ .Values.tensorboard.image_pull_policy }}
        ports:
        - containerPort:  {{ .Values.tensorboard.target_port }}
        volumeMounts:
        - mountPath: /{{ .Values.global.shared_fs }}
          name: {{ .Values.global.shared_fs }}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



