#
#    Copyright 2017 Google Inc.
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        https://www.apache.org/licenses/LICENSE-2.0

#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
#
apiVersion: v1
kind: ReplicationController
metadata:
  name: express-trace
spec:
  replicas: 3
  selector:
    app: express-trace
  template:
    metadata:
      name: express-trace
      labels:
        app: express-trace
    spec:
      containers:
      - name: express-trace
        # Replace ymg-stackdriver-trace with your project ID.
        image: gcr.io/ymg-stackdriver-trace/express-trace
        # This setting makes nodes pull the docker image every time before
        # starting the pod. This is useful when debugging, but should be turned
        # off in production.
        imagePullPolicy: Always
        # The process listens on port 8080 for web traffic by default.
        ports:
        - name: express-trace
          containerPort: 8080