Skip to content

Instantly share code, notes, and snippets.

@Rahulsharma0810
Last active April 14, 2020 14:30
Show Gist options
  • Select an option

  • Save Rahulsharma0810/33c47eb60bcc75a1860b678d479480ae to your computer and use it in GitHub Desktop.

Select an option

Save Rahulsharma0810/33c47eb60bcc75a1860b678d479480ae to your computer and use it in GitHub Desktop.

Revisions

  1. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ spec:
    - name: nginx
    image: nginx
    ports:
    - containerPort: 80
    - containerPort: 80
  2. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ spec:
    - name: nginx
    image: nginx
    ports:
    - containerPort: 80
    - containerPort: 80
  3. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ spec:
    - name: nginx
    image: nginx
    ports:
    - containerPort: 80
    - containerPort: 80
  4. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to template/metadata/labels/na
    app: nginx ##Must BE same to template/metadata/labels/app
    template:
    metadata:
    name: nginx
    @@ -16,4 +16,4 @@ spec:
    - name: nginx
    image: nginx
    ports:
    - containerPort: 80
    - containerPort: 80
  5. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to template/metadata/label
    app: nginx ##Must BE same to template/metadata/labels/na
    template:
    metadata:
    name: nginx
  6. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to template/metadata/
    app: nginx ##Must BE same to template/metadata/label
    template:
    metadata:
    name: nginx
  7. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to template/metadata
    app: nginx ##Must BE same to template/metadata/
    template:
    metadata:
    name: nginx
  8. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to template/metad
    app: nginx ##Must BE same to template/metadata
    template:
    metadata:
    name: nginx
  9. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to template/
    app: nginx ##Must BE same to template/metad
    template:
    metadata:
    name: nginx
  10. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to templay
    app: nginx ##Must BE same to template/
    template:
    metadata:
    name: nginx
  11. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to templ
    app: nginx ##Must BE same to templay
    template:
    metadata:
    name: nginx
  12. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to te
    app: nginx ##Must BE same to templ
    template:
    metadata:
    name: nginx
  13. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to
    app: nginx ##Must BE same to te
    template:
    metadata:
    name: nginx
  14. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to t
    app: nginx ##Must BE same to
    template:
    metadata:
    name: nginx
  15. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same to
    app: nginx ##Must BE same to t
    template:
    metadata:
    name: nginx
  16. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE same
    app: nginx ##Must BE same to
    template:
    metadata:
    name: nginx
  17. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##Must BE s
    app: nginx ##Must BE same
    template:
    metadata:
    name: nginx
  18. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx ##M
    app: nginx ##Must BE s
    template:
    metadata:
    name: nginx
  19. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx #
    app: nginx ##M
    template:
    metadata:
    name: nginx
  20. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ metadata:
    spec:
    replicas: 3
    selector:
    app: nginx
    app: nginx #
    template:
    metadata:
    name: nginx
  21. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ spec:
    metadata:
    name: nginx
    labels:
    app: nginx #
    app: nginx ##
    spec:
    containers:
    - name: nginx
  22. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ spec:
    metadata:
    name: nginx
    labels:
    app: nginx
    app: nginx #
    spec:
    containers:
    - name: nginx
  23. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ spec:
    metadata:
    name: nginx
    labels:
    app: nginx
    app: nginx
    spec:
    containers:
    - name: nginx
  24. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ spec:
    - name: nginx
    image: nginx
    ports:
    - containerPort: 80
    - containerPort: 80
  25. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ spec:
    app: nginx
    spec:
    containers:
    - name: nginx
    image: nginx
    ports:
    - containerPort: 80
    - name: nginx
    image: nginx
    ports:
    - containerPort: 80
  26. Rahulsharma0810 revised this gist Apr 14, 2020. 1 changed file with 19 additions and 1 deletion.
    20 changes: 19 additions & 1 deletion kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -1 +1,19 @@
    ‎‎​
    apiVersion: v1
    kind: ReplicationController
    metadata:
    name: nginx
    spec:
    replicas: 3
    selector:
    app: nginx
    template:
    metadata:
    name: nginx
    labels:
    app: nginx
    spec:
    containers:
    - name: nginx
    image: nginx
    ports:
    - containerPort: 80
  27. Rahulsharma0810 created this gist Apr 14, 2020.
    1 change: 1 addition & 0 deletions kubernetes-replication.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ‎‎​