kubernetes deployment strategy notes
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: gitea
|
||||
app.kubernetes.io/component: gitea
|
||||
app.kubernetes.io/instance: gitea
|
||||
name: gitea
|
||||
namespace: gitea
|
||||
spec:
|
||||
clusterIP:
|
||||
internalTrafficPolicy: Cluster
|
||||
ipFamilies:
|
||||
- IPv4
|
||||
ipFamilyPolicy: SingleStack
|
||||
ports:
|
||||
- name: web
|
||||
port: 3000
|
||||
protocol: TCP
|
||||
targetPort: 3000
|
||||
- name: ssh
|
||||
port: 2222
|
||||
protocol: TCP
|
||||
targetPort: 2222
|
||||
selector:
|
||||
deployment: gitea
|
||||
sessionAffinity: None
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user