about summary refs log blame commit diff
path: root/example/some-api/some-api.yaml
blob: 6f6a29a1599af4d845317cc7f32b084bd296e27e (plain) (tree)

































                                                          
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: some-api
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: some-api
    spec:
      containers:
        - image: my.container.repo/some-api:{{ .version }}
          name: some-api
          env:
            - name: ENABLE_IMPORTANT_FEATURE
              value: {{ .importantFeature }}
            - name: SOME_GLOBAL_VAR
              value: {{ .globalVar }}
---
apiVersion: v1
kind: Service
metadata:
  name: some-api
  labels:
    app: some-api
spec:
  selector:
    app: some-api
  ports:
    - port: 80
      targetPort: {{ .apiPort }}
      name: http