Skip to content

Running Kubectl warp with deployment file #15

@malimohub

Description

@malimohub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions