add ip
This commit is contained in:
parent
2939975e04
commit
84114abab3
4 changed files with 72 additions and 0 deletions
21
clusters/vntx/ip/ip-deployment.yml
Normal file
21
clusters/vntx/ip/ip-deployment.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ip-deployment
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: ip
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: ip
|
||||
spec:
|
||||
containers:
|
||||
- name: ip
|
||||
image: gmcintire/ip:1
|
||||
env:
|
||||
- name: SECRET_KEY_BASE
|
||||
value: SuyR3VcELGFJzE9acYzdkpcyG74VT2TLz+WsIw1Sndtp3JSd5/IblaIEeaG9dy6u
|
||||
imagePullPolicy: Always
|
||||
9
clusters/vntx/ip/ip-headless.yml
Normal file
9
clusters/vntx/ip/ip-headless.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: ip-headless
|
||||
spec:
|
||||
selector:
|
||||
app: ip
|
||||
type: ClusterIP
|
||||
clusterIP: None
|
||||
29
clusters/vntx/ip/ip-ingress.yml
Normal file
29
clusters/vntx/ip/ip-ingress.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
## More detailed template
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ip-deployment
|
||||
labels:
|
||||
app.kubernetes.io/name: ip-deployment
|
||||
app.kubernetes.io/instance: ip-deployment
|
||||
app.kubernetes.io/version: "1"
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
cert-manager.io/cluster-issuer: letsencrypt
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- ip.vntx.net
|
||||
secretName: ip-deployment-ingress-secret
|
||||
rules:
|
||||
- host: ip.vntx.net
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: ip-service
|
||||
port:
|
||||
number: 4000
|
||||
ingressClassName: nginx
|
||||
13
clusters/vntx/ip/ip-service.yml
Normal file
13
clusters/vntx/ip/ip-service.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: ip-service
|
||||
spec:
|
||||
selector:
|
||||
app: ip
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: https
|
||||
port: 4000
|
||||
targetPort: 4000
|
||||
protocol: TCP
|
||||
Loading…
Add table
Reference in a new issue