github.com/gocrane/crane@v0.11.0/examples/php-apache.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: php-apache
     5  spec:
     6    selector:
     7      matchLabels:
     8        run: php-apache
     9    replicas: 1
    10    template:
    11      metadata:
    12        labels:
    13          run: php-apache
    14      spec:
    15        containers:
    16          - name: php-apache
    17            image: k8s.gcr.io/hpa-example
    18            ports:
    19              - containerPort: 80
    20            resources:
    21              limits:
    22                cpu: 500m
    23              requests:
    24                cpu: 200m
    25  ---
    26  apiVersion: v1
    27  kind: Service
    28  metadata:
    29    name: php-apache
    30    labels:
    31      run: php-apache
    32  spec:
    33    ports:
    34      - port: 80
    35    selector:
    36      run: php-apache