Skip to content

Instantly share code, notes, and snippets.

@yarax
Created September 18, 2019 15:58
Show Gist options
  • Save yarax/a24d50a40aebe4c08e7c2106f0d6f077 to your computer and use it in GitHub Desktop.
Save yarax/a24d50a40aebe4c08e7c2106f0d6f077 to your computer and use it in GitHub Desktop.
Replication controller:
=================================
apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: nginx
name: nginx
spec:
replicas: 2
selector:
name: nginx
template:
metadata:
name: nginx
labels:
name: nginx
spec:
containers:
- image: multicloudworkshop.azurecr.io/lb_lab_front
name: nginx
ports:
- containerPort: 80
imagePullSecrets:
- name: regcred
Load Balancer:
=================================
---
kind: Service
apiVersion: v1
metadata:
name: loadbalancer
labels:
app: nginx
spec:
ports:
- port: 80
selector:
app: nginx
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment