You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/kubernetes/models/service/models.js

47 lines
942 B

export const KubernetesServiceHeadlessPrefix = 'headless-';
export const KubernetesServiceHeadlessClusterIP = 'None';
export const KubernetesServiceTypes = Object.freeze({
LOAD_BALANCER: 'LoadBalancer',
NODE_PORT: 'NodePort',
CLUSTER_IP: 'ClusterIP',
});
/**
* KubernetesService Model
*/
const _KubernetesService = Object.freeze({
Headless: false,
Namespace: '',
Name: '',
StackName: '',
Ports: [],
Type: '',
ClusterIP: '',
ApplicationName: '',
ApplicationOwner: '',
Note: '',
});
export class KubernetesService {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesService)));
}
}
/**
* KubernetesServicePort Model
*/
const _KubernetesServicePort = Object.freeze({
name: '',
port: 0,
targetPort: 0,
protocol: '',
nodePort: 0,
});
export class KubernetesServicePort {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesServicePort)));
}
}