---    
   
apiVersion: v1
kind: ReplicationController
metadata:
  name: static-website-v2
spec:
  replicas: 3
  selector:
    app: website-from-git
    ver: 2-0
    
  template:
    metadata:
      labels:
        app: website-from-git
        ver: 2-0
    spec:
      containers:
      - name: nginx
        image: ckleban/nginx-from-git:v2
        livenessProbe:
          # an http probe
          httpGet:
            path: /
            port: 80
          # length of time to wait for a pod to initialize
          # after pod startup, before applying health checking
          initialDelaySeconds: 3
          timeoutSeconds: 1    
          
        resources:
          requests:
            cpu: "250m"
            memory: "128Mi"
          limits:
            cpu: "500m"
            memory: "256Mi"
        ports:
        - containerPort: 80
        volumeMounts:
        - mountPath: /wwwdata
          name: gitdata
      volumes:
      - name: gitdata
        gitRepo:
          repository: https://github.com/ckleban/sample-website
          revision: aaf7ea4beb9771468b6729bc041dd567dff2f472
          