Commit 93bc8423 by tingweiwang

hello world

0 parents
#!/bin/bash
#wangtingwei
image_list=(
192.168.1.32:5000/k8s/nginx:latest
)
apiVersion: v1
kind: Service
metadata:
name: CICD--frontend
namespace: kpl
spec:
type: NodePort
selector:
app: CICD--frontend
ports:
- port: 80
name: port-80
targetPort: 80
nodePort: 30272
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: CICD--frontend
namespace: kpl
spec:
replicas: 1
template:
metadata:
labels:
app: CICD--frontend
spec:
nodeSelector:
internal_service_node: "true"
containers:
- name: kpl--frontend
image: DOCKER_REGISTRY/kpl--frontend:latest
imagePullPolicy: Always
ports:
- containerPort: 80
name: port-80
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!