Created
February 7, 2018 15:36
-
-
Save CalvinHartwell/bb6c77c7295f5f1dc9a94f7a7dab90f6 to your computer and use it in GitHub Desktop.
microbotv1-nfs.yaml
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: | |
| creationTimestamp: null | |
| labels: | |
| app: microbot-nfs | |
| name: microbot-nfs | |
| spec: | |
| replicas: 5 | |
| selector: | |
| matchLabels: | |
| app: microbot-nfs | |
| strategy: {} | |
| template: | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: microbot-nfs | |
| ima: pod | |
| spec: | |
| containers: | |
| - image: dontrebootme/microbot:v2 | |
| imagePullPolicy: "" | |
| name: microbot-nfs | |
| volumeMounts: | |
| - mountPath: "/usr/share/nginx/html/" | |
| name: mymount | |
| ports: | |
| - containerPort: 80 | |
| livenessProbe: | |
| httpGet: | |
| path: / | |
| port: 80 | |
| initialDelaySeconds: 5 | |
| timeoutSeconds: 30 | |
| resources: {} | |
| volumes: | |
| - name: mymount | |
| persistentVolumeClaim: | |
| claimName: nfs-claim-1 | |
| restartPolicy: Always | |
| serviceAccountName: "" | |
| status: {} | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: microbot-nfs | |
| labels: | |
| app: microbot-nfs | |
| spec: | |
| ports: | |
| - port: 8080 | |
| protocol: TCP | |
| targetPort: 80 | |
| selector: | |
| app: microbot-nfs | |
| --- | |
| apiVersion: extensions/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: microbot-nfs | |
| spec: | |
| rules: | |
| - host: microbot-nfs.kube.loc | |
| http: | |
| paths: | |
| - path: / | |
| backend: | |
| serviceName: microbot-nfs | |
| servicePort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment