...

Text file src/cuelang.org/go/doc/tutorial/kubernetes/original/services/proxy/nginx/kube.yaml

Documentation: cuelang.org/go/doc/tutorial/kubernetes/original/services/proxy/nginx

     1apiVersion: apps/v1
     2kind: Deployment
     3metadata:
     4  name: nginx
     5spec:
     6  replicas: 1
     7  # podTemplate defines the 'cookie cutter' used for creating
     8  # new pods when necessary
     9  template:
    10    metadata:
    11      labels:
    12        # Important: these labels need to match the selector above
    13        # The api server enforces this constraint.
    14        app: nginx
    15        component: proxy
    16    spec:
    17      volumes:
    18      - name: secret-volume
    19        secret:
    20          secretName: proxy-secrets
    21      - name: config-volume
    22        configMap:
    23          name: nginx
    24      containers:
    25      # Put nginx last so it will be linked with previous two containers during
    26      # testing.
    27      - image: nginx:1.11.10-alpine
    28        ports:
    29        - containerPort: 80
    30        - containerPort: 443
    31        name: nginx
    32        volumeMounts:
    33        - mountPath: /etc/ssl
    34          name: secret-volume
    35        - name: config-volume
    36          mountPath: /etc/nginx/nginx.conf
    37          subPath: nginx.conf
    38
    39

View as plain text