mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			618 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			618 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: v1
 | 
						|
kind: ReplicationController
 | 
						|
metadata:
 | 
						|
  name: nginx-controller
 | 
						|
spec:
 | 
						|
  replicas: 2
 | 
						|
  # selector identifies the set of pods that this
 | 
						|
  # replication controller is responsible for managing
 | 
						|
  selector:
 | 
						|
    name: nginx
 | 
						|
  # template defines the 'cookie cutter' used for creating
 | 
						|
  # new pods when necessary
 | 
						|
  template:
 | 
						|
    metadata:
 | 
						|
      labels:
 | 
						|
        # Important: these labels need to match the selector above
 | 
						|
        # The api server enforces this constraint.
 | 
						|
        name: nginx
 | 
						|
    spec:
 | 
						|
      containers:
 | 
						|
        - name: nginx
 | 
						|
          image: nginx
 | 
						|
          ports:
 | 
						|
            - containerPort: 80
 |