Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Kubectl warp with deployment file #15

Open
malimohub opened this issue Apr 15, 2020 · 0 comments
Open

Running Kubectl warp with deployment file #15

malimohub opened this issue Apr 15, 2020 · 0 comments

Comments

@malimohub
Copy link

Let me prefix this by saying that I am fairly new to kubernetes, however I was able to create a deployment yml defining a pod as detailed below:
apiVersion: apps/v1
kind: Deployment # Type of Kubernetes resource
metadata:
name: ocr-service # Name of the Kubernetes resource
spec:
replicas: 1
selector:
matchLabels:
app: ocr-service # This deployment applies to any Pods matching the specified label

template:                      # This deployment will create a set of pods using the configurations in this template
    metadata:
        labels:                    # The labels that will be applied to all of the pods in this deployment
            app: ocr-service
    spec:  
        containers: 
        - name: ocr-service
          image: 10ure/ocrservice:1.0.0
          imagePullPolicy: IfNotPresent
          ports: 
            - containerPort: 8084
          livenessProbe:           # To check the health of the Pod
            httpGet:
                path: /api/v1/health
                port: 8084
                scheme: HTTP
            initialDelaySeconds: 5
            periodSeconds: 15
            timeoutSeconds: 5
          readinessProbe:          # To check if the Pod is ready to serve traffic or not
            httpGet:
                path: /api/v1/readiness
                port: 8084
                scheme: HTTP
            initialDelaySeconds: 5
            timeoutSeconds: 1 
        imagePullSecrets:
            - name: regcred 

I was wondering if.there was a way to run the kubectl warp command and specify a deployment file? I have other deployment files that are a bit more complex due to specified environment variables. I am unsure how I would run those deployment configs with this tool. Or am I missing the point of this tool?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant