# Kubernetes DemoRESTRoute deployment # apiVersion: v1 kind: Service metadata: name: demorestroute labels: app : demorestroute spec: ports: - port: <MACHINE_PORT> targetPort: 8065 name: http-demorestroute selector: app : demorestroute --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: demorestroute-v1 spec: replicas: 1 template: metadata: labels: app : demorestroute version: v1 spec: containers: - name: demorestroute image: <ARTIFACT_REPOSITORY_DOCKER_REGISTRY>/<STUDIO_PROJECT>/demorestroute:latest imagePullPolicy: IfNotPresent ports: - containerPort: 8065 ---
$ kubectl apply -f demorestroute.yaml service/demorestroute created deployment.extensions/demorestroute-v1 created
$ kubectl get po NAME READY STATUS RESTARTS AGE demorestroute-v1-6c4dc67648-z6zh7 1/1 Running 0 8s
$ kubectl delete -f demorestroute.yaml service "demorestroute" deleted deployment.extensions "demorestroute-v1" deleted
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!