Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created July 18, 2021 06:56
Show Gist options
  • Select an option

  • Save bharatmicrosystems/8c795ea3b1b56be37a2af8cc61d49be8 to your computer and use it in GitHub Desktop.

Select an option

Save bharatmicrosystems/8c795ea3b1b56be37a2af8cc61d49be8 to your computer and use it in GitHub Desktop.

Revisions

  1. bharatmicrosystems revised this gist Jul 18, 2021. No changes.
  2. bharatmicrosystems revised this gist Jul 18, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nginx.yaml
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ spec:
    selector:
    matchLabels:
    run: my-nginx
    replicas: 4
    replicas: 2
    template:
    metadata:
    labels:
  3. bharatmicrosystems created this gist Jul 18, 2021.
    33 changes: 33 additions & 0 deletions nginx.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    apiVersion: apps/v1
    kind: Deployment
    metadata:
    name: my-nginx
    spec:
    selector:
    matchLabels:
    run: my-nginx
    replicas: 4
    template:
    metadata:
    labels:
    run: my-nginx
    spec:
    containers:
    - name: my-nginx
    image: nginx
    ports:
    - containerPort: 80
    ---
    apiVersion: v1
    kind: Service
    metadata:
    name: my-nginx
    labels:
    run: my-nginx
    spec:
    ports:
    - port: 80
    protocol: TCP
    type: LoadBalancer
    selector:
    run: my-nginx