Created
          May 10, 2017 09:11 
        
      - 
      
- 
        Save andre-brongniart/75454b5d33a45dc928e12c789ed8b661 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: php7-private | |
| labels: | |
| app: php7-private | |
| spec: | |
| replicas: 6 | |
| # selector: | |
| # app: php7-private | |
| template: | |
| metadata: | |
| labels: | |
| app: php7-private | |
| spec: | |
| containers: | |
| - name: php7-private | |
| image: andrebks/docker-wp | |
| imagePullPolicy: Always | |
| ports: | |
| - containerPort: 80 | |
| # env: | |
| # - name: GIT_REPO | |
| # value: https://bitbucket.org/andre_brongniart/wp-doc-root.git | |
| volumeMounts: | |
| - name: wp-doc-root | |
| mountPath: /var/www/ | |
| # - name: git-sync | |
| # image: 'gcr.io/google_containers/git-sync:v2.0.4' | |
| # imagePullPolicy: Always | |
| # volumeMounts: | |
| # - name: wp-doc-root | |
| # mountPath: /git | |
| # env: | |
| # - name: GIT_SYNC_REPO | |
| # value: https://bitbucket.org/andre_brongniart/wp-doc-root.git | |
| # - name: GIT_SYNC_DEST | |
| # value: /git | |
| imagePullSecrets: | |
| - name: regsecret | |
| volumes: | |
| - name: wp-doc-root | |
| gitRepo: | |
| repository: http://10.241.1.233/root/wp-doc-root.git | |
| status: {} | |
| --- | |
| apiVersion: v1 | |
| kind: Service # Create a service defintion which maps what ports from the pods to expose | |
| metadata: | |
| name: php7-private | |
| labels: | |
| app: php7-private | |
| spec: | |
| ports: | |
| - port: 80 | |
| protocol: TCP | |
| targetPort: 80 | |
| selector: | |
| app: php7-private | |
| --- | |
| apiVersion: extensions/v1beta1 | |
| kind: Ingress # Create an Ingress controller which maps a host to a service | |
| metadata: | |
| name: php7-private | |
| spec: | |
| rules: | |
| - host: wp-test-private.10.241.1.222.xip.io # This is the hostname for the controller to listen to. | |
| http: | |
| paths: | |
| - path: / | |
| backend: | |
| serviceName: php7-private | |
| servicePort: 80 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment