Commit 2bd686cf authored by liaozan's avatar liaozan 🏀

add k8s-service-template.yml

parent ba6d3577
...@@ -36,4 +36,4 @@ spec: ...@@ -36,4 +36,4 @@ spec:
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 10 periodSeconds: 10
imagePullSecrets: imagePullSecrets:
- name: kp-schbrain - name: kp-schbrain
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: ${SERVICE_NAME}
namespace: ${NAMESPACE}
labels:
app: ${SERVICE_NAME}
spec:
type: ClusterIP
ports:
- port: ${SERVICE_PORT}
targetPort: ${SERVICE_PORT}
selector:
app: ${APP_NAME}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment